diff options
author | Pavel Vomacka <pvomacka@redhat.com> | 2016-12-12 09:44:40 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2016-12-12 18:30:10 +0100 |
commit | 17392b0ef754781775a10973b2fee8a6d1697f5d (patch) | |
tree | cba86248c48758f586c40c619f5f754c365e5e0c /install/ui/src/freeipa | |
parent | 38cc01b1c92da36653e0ce4d8f7066282fd1d102 (diff) | |
download | freeipa-17392b0ef754781775a10973b2fee8a6d1697f5d.tar.gz freeipa-17392b0ef754781775a10973b2fee8a6d1697f5d.tar.xz freeipa-17392b0ef754781775a10973b2fee8a6d1697f5d.zip |
WebUI: Hide incorrectly shown buttons on hosts tab in ID Views
There was missing default value for evaluator adapter.
In that case the adapter variable could be undefined and
it crashes on building adapter. Therefore it did not
evaluate all evaluators. That is the reason why 'Delete'
and 'Add' buttons were incorrectly shown.
Default value is now set to empty object.
https://fedorahosted.org/freeipa/ticket/6546
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa')
-rw-r--r-- | install/ui/src/freeipa/details.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/details.js b/install/ui/src/freeipa/details.js index e274e6faa..9f0e6321e 100644 --- a/install/ui/src/freeipa/details.js +++ b/install/ui/src/freeipa/details.js @@ -1647,6 +1647,7 @@ exp.value_state_evaluator = IPA.value_state_evaluator = function(spec) { spec.name = spec.name || 'value_state_evaluator'; spec.event = spec.event || 'post_load'; + spec.adapter = spec.adapter || {}; var that = IPA.state_evaluator(spec); |