Remove check for hasMessage, closes #482
This commit is contained in:
@@ -19,11 +19,9 @@
|
||||
</abbr>
|
||||
</small>
|
||||
</div>
|
||||
@if($incident->hasMessage())
|
||||
<div class="panel-body">
|
||||
<p>{{ $incident->formattedMessage }}</p>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -93,14 +93,4 @@ class Incident extends Model implements TransformableInterface, PresenterInterfa
|
||||
{
|
||||
return new IncidentTransformer();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if Incident has message.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function hasMessage()
|
||||
{
|
||||
return (trim($this->message) !== '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user