Skip to content

Commit 0c0a219

Browse files
authored
Merge pull request #2215 from nicolasfagotti/componentOrderBugOnEdition
Change "order" condition when a component is edited
2 parents a8307fa + 1f09622 commit 0c0a219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/dashboard/components/edit.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
</fieldset>
6767

6868
<input type="hidden" name="component[user_id]" value="{{ $component->agent_id || $current_user->id }}">
69-
<input type="hidden" name="component[order]" value="{{ $component->order || 0 }}">
69+
<input type="hidden" name="component[order]" value="{{ $component->order ?: 0 }}">
7070

7171
<div class="btn-group">
7272
<button type="submit" class="btn btn-success">{{ trans('forms.save') }}</button>

0 commit comments

Comments
 (0)