diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-02-18 13:44:07 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-03-06 12:55:54 +0100 |
commit | 99421026f6e641ab80618814bc6418f2d285f8f2 (patch) | |
tree | 69723438e4b46a72af530ebbb4384c523072077b /install | |
parent | 86f24dab435465ed2a4f9fca92f58deba88f1a8a (diff) | |
download | freeipa-99421026f6e641ab80618814bc6418f2d285f8f2.tar.gz freeipa-99421026f6e641ab80618814bc6418f2d285f8f2.tar.xz freeipa-99421026f6e641ab80618814bc6418f2d285f8f2.zip |
Fix handling of no_update flag in Web UI
There was an incorrect check for no_update flag. Check was performed as
if the flag was an attribute of object not an item of array. Hence, the
flag never caused any effect.
Diffstat (limited to 'install')
-rw-r--r-- | install/ui/src/freeipa/field.js | 4 |
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; } } |