Not using ng-options for filter operator dropdown.

So that the actual values are passed in the post params instead of the angular ones. same as with the filter value dropdowns.
pull/1144/head
Richard 11 years ago
parent ebe264a5ec
commit 72012cdb14
  1. 3
      public/templates/work_packages/query_filters.html

@ -41,10 +41,11 @@
class="select-small to-validate" class="select-small to-validate"
id="operators-{{filter.name}}" id="operators-{{filter.name}}"
name="op[{{filter.name}}]" name="op[{{filter.name}}]"
ng-options="operator[0] as I18n.t('js.' + operator[1]) for operator in operatorsAndLabelsByFilterType[filter.type]"
ng-model="filter.operator" ng-model="filter.operator"
style="vertical-align: top;" style="vertical-align: top;"
ng-disabled="isLoading"> ng-disabled="isLoading">
<option ng-repeat="option in operatorsAndLabelsByFilterType[filter.type]" value="{{ option[0] }}" ng-selected="isSelected(option[0])">{{ I18n.t('js.' + option[1]) }}</option>
</select> </select>
</td> </td>

Loading…
Cancel
Save