mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
use other_entity for adder columns
delay creation of the table until the columns have been set https://fedorahosted.org/freeipa/ticket/1544
This commit is contained in:
parent
a22d00234f
commit
bb45e51809
@ -715,7 +715,7 @@ IPA.association_facet = function (spec) {
|
||||
factory = IPA.column;
|
||||
spec = { name: spec };
|
||||
}
|
||||
spec.entity = that.entity;
|
||||
spec.entity_name = that.other_entity;
|
||||
column = factory(spec);
|
||||
that.add_adder_column(column);
|
||||
return column;
|
||||
|
@ -369,6 +369,11 @@ IPA.adder_dialog = function (spec) {
|
||||
}
|
||||
that.create = function() {
|
||||
|
||||
/*TODO: move this earlier
|
||||
The table initialization should be done earlier. However,
|
||||
the adder columns are not added until after initialization is over,
|
||||
and thus we have to dleay the creation of the table.*/
|
||||
initialize_table();
|
||||
|
||||
// do not call that.dialog_create();
|
||||
|
||||
@ -564,7 +569,6 @@ IPA.adder_dialog = function (spec) {
|
||||
}
|
||||
}
|
||||
|
||||
initialize_table();
|
||||
|
||||
that.adder_dialog_create = that.create;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user