mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'ent-4771-Revision-llamada-API-create-event-en-metaconsola' into 'develop'
Ent 4771 revision llamada api create event en metaconsola See merge request artica/pandorafms!2793
This commit is contained in:
commit
f1a52d6272
@ -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']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -2231,7 +2231,7 @@ function events_create_event(
|
|||||||
}
|
}
|
||||||
|
|
||||||
$table_events = 'tevento';
|
$table_events = 'tevento';
|
||||||
if (defined('METACONSOLE')) {
|
if (is_metaconsole()) {
|
||||||
$table_events = 'tmetaconsole_event';
|
$table_events = 'tmetaconsole_event';
|
||||||
|
|
||||||
$sql = sprintf(
|
$sql = sprintf(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user