Skip to content

Commit

Permalink
Change "order" condition when a component is edited
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasfagotti committed Oct 27, 2016
1 parent a8307fa commit 8ecc6a5
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 ? $component->order : 0 }}">

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

0 comments on commit 8ecc6a5

Please sign in to comment.