🔧 Utilise l'id plutôt que le nom
Comme ça, s'il change, on est safe
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<select id="category" name="category">
|
||||
<option value="">−</option>
|
||||
@foreach(\Shikiryu\LBCReposter\Categories::$categories as $id => $category)
|
||||
<<option value="{{ $id }}" @if( $deal->getCategory() === $category ) selected="selected" @endif>{{ $category }}</option>
|
||||
<<option value="{{ $id }}" @if( $deal->getIdCategory() === $id ) selected="selected" @endif>{{ $category }}</option>
|
||||
@endforeach
|
||||
</select><br>
|
||||
<input type="submit" value="Modifier" />
|
||||
|
Reference in New Issue
Block a user