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");
|
||||||
});
|
});
|
||||||
|
|
|
@ -255,6 +255,10 @@ function users_get_groups ($id_user = false, $privilege = "AR", $returnAllGroup
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($id_groups)) {
|
||||||
|
$user_groups = array_intersect_key($user_groups,array_flip($id_groups));
|
||||||
|
}
|
||||||
|
|
||||||
return $user_groups;
|
return $user_groups;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue