diff options
Diffstat (limited to 'install/ui/src/freeipa/add.js')
-rw-r--r-- | install/ui/src/freeipa/add.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/install/ui/src/freeipa/add.js b/install/ui/src/freeipa/add.js index 1b4a1ae59..388b4e497 100644 --- a/install/ui/src/freeipa/add.js +++ b/install/ui/src/freeipa/add.js @@ -19,7 +19,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -define(['./ipa', './jquery', './field', './widget', './dialog'], function(IPA, $) { +define(['./ipa', './jquery', './navigation', './field', './widget', './dialog'], + function(IPA, $, navigation) { IPA.entity_adder_dialog = function(spec) { @@ -127,7 +128,10 @@ IPA.entity_adder_dialog = function(spec) { if (pkey instanceof Array) { pkey = pkey[0]; } - IPA.nav.show_entity_page(that.entity, 'default', pkey); + + var pkeys = that.facet.get_pkeys(); + pkeys.push(pkey); + navigation.show_entity(that.entity.name, 'default', [pkeys]); } that.create_add_command = function(record) { |