Skip to content

Commit

Permalink
Merge pull request #2215 from nicolasfagotti/componentOrderBugOnEdition
Browse files Browse the repository at this point in the history
Change "order" condition when a component is edited
  • Loading branch information
jbrooksuk authored Oct 28, 2016
2 parents a8307fa + 1f09622 commit 0c0a219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/dashboard/components/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</fieldset>

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

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

0 comments on commit 0c0a219

Please sign in to comment.