Fixed issue to search agent modules in cascade protection
This commit is contained in:
parent
120fbad29d
commit
97392c4568
|
@ -580,11 +580,11 @@ ui_require_jquery_file('bgiframe');
|
|||
});
|
||||
|
||||
$("#text-id_parent").on("autocompletechange", function () {
|
||||
agent_name = $("#text-id_parent").val();
|
||||
agent_id=$("#hidden-id_parent").val();
|
||||
|
||||
var params = {};
|
||||
params["get_agent_modules_json_by_name"] = 1;
|
||||
params["agent_name"] = agent_name;
|
||||
params["id_agent"] = agent_id;
|
||||
params["page"] = "include/ajax/module";
|
||||
|
||||
jQuery.ajax ({
|
||||
|
|
|
@ -558,11 +558,11 @@ $(document).ready (function () {
|
|||
});
|
||||
|
||||
$("#text-id_parent").on("autocompletechange", function () {
|
||||
agent_name = $("#text-id_parent").val();
|
||||
agent_id = $("#hidden-id_parent").val();
|
||||
|
||||
var params = {};
|
||||
params["get_agent_modules_json_by_name"] = 1;
|
||||
params["agent_name"] = agent_name;
|
||||
params["id_agent"] = agent_id;
|
||||
params["page"] = "include/ajax/module";
|
||||
|
||||
jQuery.ajax ({
|
||||
|
|
|
@ -38,9 +38,7 @@ $get_agent_modules_json_by_name = (bool) get_parameter('get_agent_modules_json_b
|
|||
|
||||
|
||||
if ($get_agent_modules_json_by_name) {
|
||||
$agent_name = get_parameter('agent_name');
|
||||
|
||||
$agent_id = agents_get_agent_id($agent_name);
|
||||
$agent_id = get_parameter('id_agent');
|
||||
|
||||
$agent_modules = db_get_all_rows_sql("SELECT id_agente_modulo as id_module, nombre as name FROM tagente_modulo
|
||||
WHERE id_agente = " . $agent_id);
|
||||
|
|
Loading…
Reference in New Issue