Force the component status to an integer

This commit is contained in:
James Brooks
2015-01-15 13:44:16 +00:00
parent e8a9035490
commit 85d33bf2c6

View File

@@ -26,7 +26,7 @@
@foreach(trans('cachet.components.status') as $statusID => $status)
<div class="radio-inline">
<label>
<input type="radio" name="status" value="{{ $statusID }}" {{ $component->status === $statusID ? 'checked' : null }} />
<input type="radio" name="status" value="{{ $statusID }}" {{ (int) $component->status === $statusID ? 'checked' : null }} />
{{ $status }}
</label>
</div>