mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
parent
31d7486b88
commit
a3e0e671a1
@ -221,6 +221,13 @@ IPA.facet = function(spec, no_init) {
|
|||||||
return new_keys;
|
return new_keys;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
that.get_pkey_prefix = function() {
|
||||||
|
var pkeys = that.get_pkeys();
|
||||||
|
if (pkeys.length > 0) pkeys.pop();
|
||||||
|
|
||||||
|
return pkeys;
|
||||||
|
};
|
||||||
|
|
||||||
that.state_diff = function(a, b) {
|
that.state_diff = function(a, b) {
|
||||||
var diff = false;
|
var diff = false;
|
||||||
var checked = {};
|
var checked = {};
|
||||||
|
@ -175,15 +175,23 @@ IPA.search_facet = function(spec, no_init) {
|
|||||||
return name;
|
return name;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
that.get_refresh_command_args = function() {
|
||||||
|
var filter = that.state.filter || '';
|
||||||
|
// use only prefix, we are looking for records of current entity
|
||||||
|
var args = that.get_pkey_prefix();
|
||||||
|
args.push(filter);
|
||||||
|
return args;
|
||||||
|
};
|
||||||
|
|
||||||
that.create_refresh_command = function() {
|
that.create_refresh_command = function() {
|
||||||
|
|
||||||
var filter = that.state.filter || '';
|
var args = that.get_refresh_command_args();
|
||||||
|
|
||||||
var command = IPA.command({
|
var command = IPA.command({
|
||||||
name: that.get_search_command_name(),
|
name: that.get_search_command_name(),
|
||||||
entity: that.managed_entity.name,
|
entity: that.managed_entity.name,
|
||||||
method: 'find',
|
method: 'find',
|
||||||
args: filter,
|
args: args,
|
||||||
options: {
|
options: {
|
||||||
all: that.search_all_attributes
|
all: that.search_all_attributes
|
||||||
}
|
}
|
||||||
@ -352,6 +360,14 @@ IPA.nested_search_facet = function(spec) {
|
|||||||
that.search_facet_refresh();
|
that.search_facet_refresh();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
that.get_refresh_command_args = function() {
|
||||||
|
var filter = that.state.filter || '';
|
||||||
|
// use full pkeys, we are looking for nested entity's records
|
||||||
|
var args = that.get_pkeys();
|
||||||
|
args.push(filter);
|
||||||
|
return args;
|
||||||
|
};
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user