mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'ent-6602-AXA-Recursividad-de-grupos-no-funciona-en-operaciones-masivas' into 'develop'
fix recursivity check See merge request artica/pandorafms!3711
This commit is contained in:
commit
72ecb53412
@ -35,11 +35,23 @@
|
|||||||
$("option[value!=0]", $select).remove ();
|
$("option[value!=0]", $select).remove ();
|
||||||
if (! config.callbackBefore (this))
|
if (! config.callbackBefore (this))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (typeof config.recursion === "function") {
|
||||||
|
// Perform this for those cases where recursion parameter is obtained through a function that returns a variable that is set in the lexical environment where this constructor is called.
|
||||||
|
var recursion_value = config.recursion();
|
||||||
|
|
||||||
|
if (typeof recursion_value === "boolean") {
|
||||||
|
recursion_value = recursion_value ? 1 : 0;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
var recursion_value = config.recursion;
|
||||||
|
}
|
||||||
|
|
||||||
var opts = {
|
var opts = {
|
||||||
"page" : "godmode/groups/group_list",
|
"page" : "godmode/groups/group_list",
|
||||||
"get_group_agents" : 1,
|
"get_group_agents" : 1,
|
||||||
"id_group" : this.value,
|
"id_group" : this.value,
|
||||||
"recursion" : config.recursion,
|
"recursion" : recursion_value,
|
||||||
"filter_agents_json" : config.filter_agents_json,
|
"filter_agents_json" : config.filter_agents_json,
|
||||||
"disabled" : (typeof config.disabled === "function")
|
"disabled" : (typeof config.disabled === "function")
|
||||||
? (config.disabled())
|
? (config.disabled())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user