mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
Fixed group recursion in bulk operation
This commit is contained in:
parent
1895bf3fe9
commit
caa3539c4f
@ -259,7 +259,7 @@ $table->data[0][0] = __('Group');
|
|||||||
$table->data[0][1] = html_print_select_groups(false, "AW", true,
|
$table->data[0][1] = html_print_select_groups(false, "AW", true,
|
||||||
'id_group', $id_group, false, '', '', true);
|
'id_group', $id_group, false, '', '', true);
|
||||||
$table->data[0][2] = __('Group recursion');
|
$table->data[0][2] = __('Group recursion');
|
||||||
$table->data[0][3] = html_print_checkbox ("recursion", 1, $recursion,
|
$table->data[0][3] = html_print_checkbox ("recursion2", 1, $recursion,
|
||||||
true, false);
|
true, false);
|
||||||
|
|
||||||
|
|
||||||
@ -625,7 +625,7 @@ $(document).ready (function () {
|
|||||||
$("select#id_os").pandoraSelectOS ();
|
$("select#id_os").pandoraSelectOS ();
|
||||||
|
|
||||||
var recursion;
|
var recursion;
|
||||||
$("#checkbox-recursion").click(function () {
|
$("#checkbox-recursion2").click(function () {
|
||||||
recursion = this.checked ? 1 : 0;
|
recursion = this.checked ? 1 : 0;
|
||||||
$("#id_group").trigger("change");
|
$("#id_group").trigger("change");
|
||||||
});
|
});
|
||||||
|
@ -254,7 +254,11 @@ function users_get_groups ($id_user = false, $privilege = "AR", $returnAllGroup
|
|||||||
$user_groups[$group[$keys_field]] = $group['nombre'];
|
$user_groups[$group[$keys_field]] = $group['nombre'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($id_groups)) {
|
||||||
|
$user_groups = array_intersect_key($user_groups,array_flip($id_groups));
|
||||||
|
}
|
||||||
|
|
||||||
return $user_groups;
|
return $user_groups;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user