Skip to content

Commit

Permalink
Merge pull request #803 from marmelab/fix_choices_14wq
Browse files Browse the repository at this point in the history
Fix maChoiceField for Angular 1.4
  • Loading branch information
fzaninotto committed Nov 19, 2015
2 parents caf78d5 + 2bbe237 commit 31ce30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/javascripts/ng-admin/Crud/field/maChoiceField.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function maChoiceField($compile) {
itemsFilter = '';
}

var choices = scope.choices() ? scope.choices : (field.choices ? field.choices() : []);
var choices = (typeof scope.choices == 'function' && scope.choices()) ? scope.choices() : (field.choices ? field.choices() : []);
var attributes = field.attributes();
scope.placeholder = (attributes && attributes.placeholder) || 'Filter values';

Expand Down

0 comments on commit 31ce30b

Please sign in to comment.