Skip to content

Commit

Permalink
Merge pull request #77 from ngmy/fix-error-after-deleting-user
Browse files Browse the repository at this point in the history
Fix an error on the Deployments page after deleting a user
  • Loading branch information
ngmy authored May 15, 2017
2 parents 5e87e63 + a732e63 commit 4f36686
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/views/deployments/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<td>{{ $deployment->task }}</td>
<td>{{ $deployment->created_at }}</td>
<td>{{ $deployment->updated_at }}</td>
<td>{{ $deployment->user->email }}</td>
<td>{{ is_null($deployment->user) ? '' : $deployment->user->email }}</td>
<td>
{!! link_to_route('projects.deployments.show', 'Show', [$project, $deployment->number], ['class' => 'btn btn-default']) !!}
</td>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/deployments/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</tr>
<tr>
<th>Executed By</th>
<td>{{ $deployment->user->email }}</td>
<td>{{ is_null($deployment->user) ? '' : $deployment->user->email }}</td>
</tr>
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/emails/notification.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Finished At: {{ $deployment->updated_at }}


Executed By: {{ $deployment->user->email }}
Executed By: {{ is_null($deployment->user) ? '' : $deployment->user->email }}


Deployment URL: {{ route('projects.deployments.show', [$project->id, $deployment->number]) }}
Expand Down

0 comments on commit 4f36686

Please sign in to comment.