Skip to content

Commit

Permalink
Metric visibility flag was named incorrectly
Browse files Browse the repository at this point in the history
The visibility flag was not properly wrapped into the array leading to
an error when adding in a metric as it would have an undefined index.
  • Loading branch information
mwillbanks committed Dec 7, 2016
1 parent 0780e40 commit e5335b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/dashboard/metrics/add.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
</div>
<div class="form-group">
<label>{{ trans('forms.metrics.visibility') }}</label>
<select name="visible" class="form-control" required>
<select name="metric[visible]" class="form-control" required>
<option value="0">{{ trans('forms.metrics.visibility_authenticated') }}</option>
<option value="1">{{ trans('forms.metrics.visibility_public') }}</option>
<option value="2">{{ trans('forms.metrics.visibility_hidden') }}</option>
Expand Down

0 comments on commit e5335b1

Please sign in to comment.