summaryrefslogtreecommitdiffstats
path: root/install/ui
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui')
-rw-r--r--install/ui/src/freeipa/field.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/install/ui/src/freeipa/field.js b/install/ui/src/freeipa/field.js
index c549a0004..f705ef7b8 100644
--- a/install/ui/src/freeipa/field.js
+++ b/install/ui/src/freeipa/field.js
@@ -21,7 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-define(['./ipa', './jquery'], function(IPA, $) {
+define(['dojo/_base/array', './ipa', './jquery'], function(array, IPA, $) {
IPA.field = function(spec) {
spec = spec || {};
@@ -182,7 +182,7 @@ IPA.field = function(spec) {
that.writable = false;
}
- if (that.metadata.flags && 'no_update' in that.metadata.flags) {
+ if (that.metadata.flags && array.indexOf(that.metadata.flags, 'no_update') > -1) {
that.writable = false;
}
}