mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
API allow create events with event_custom_id
This commit is contained in:
parent
f5b4cf2359
commit
ea935d3a92
@ -13156,6 +13156,12 @@ function api_set_create_event($id, $trash1, $other, $returnType)
|
||||
$values['id_extra'] = '';
|
||||
}
|
||||
|
||||
if ($other['data'][21] != '') {
|
||||
$values['event_custom_id'] = $other['data'][21];
|
||||
}else{
|
||||
$values['event_custom_id'] = '';
|
||||
}
|
||||
|
||||
$custom_data = base64_decode($values['custom_data']);
|
||||
$custom_data = mysql_escape_string_sql($custom_data);
|
||||
|
||||
@ -13178,7 +13184,7 @@ function api_set_create_event($id, $trash1, $other, $returnType)
|
||||
$values['server_id'],
|
||||
$values['id_extra'],
|
||||
$ack_utimestamp,
|
||||
$values['event_custom_id'] ?? null
|
||||
$values['event_custom_id']
|
||||
);
|
||||
|
||||
if ($other['data'][12] != '') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user