mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Changed id_agent for id_tagent
This commit is contained in:
parent
9a84c8c893
commit
740dcdb35b
@ -12195,7 +12195,7 @@ function api_set_create_event($id, $trash1, $other, $returnType)
|
|||||||
$id_agent = $other['data'][2];
|
$id_agent = $other['data'][2];
|
||||||
if (is_metaconsole()) {
|
if (is_metaconsole()) {
|
||||||
// On metaconsole, connect with the node to check the permissions
|
// On metaconsole, connect with the node to check the permissions
|
||||||
$agent_cache = db_get_row('tmetaconsole_agent', 'id_agente', $id_agent);
|
$agent_cache = db_get_row('tmetaconsole_agent', 'id_tagente', $id_agent);
|
||||||
if ($agent_cache === false) {
|
if ($agent_cache === false) {
|
||||||
returnError('id_not_found', 'string');
|
returnError('id_not_found', 'string');
|
||||||
return;
|
return;
|
||||||
@ -12372,7 +12372,7 @@ function api_set_create_event($id, $trash1, $other, $returnType)
|
|||||||
$return,
|
$return,
|
||||||
$user_comment,
|
$user_comment,
|
||||||
'Added comment',
|
'Added comment',
|
||||||
defined('METACONSOLE'),
|
is_metaconsole(),
|
||||||
$config['history_db_enabled']
|
$config['history_db_enabled']
|
||||||
);
|
);
|
||||||
if ($other['data'][13] != '') {
|
if ($other['data'][13] != '') {
|
||||||
@ -12384,7 +12384,7 @@ function api_set_create_event($id, $trash1, $other, $returnType)
|
|||||||
$return,
|
$return,
|
||||||
$owner_user,
|
$owner_user,
|
||||||
true,
|
true,
|
||||||
defined('METACONSOLE'),
|
is_metaconsole(),
|
||||||
$config['history_db_enabled']
|
$config['history_db_enabled']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user