minor fixes
This commit is contained in:
parent
71e9452988
commit
2f7a826253
|
@ -59,11 +59,9 @@ $result = integria_api_call($config['integria_hostname'], $config['integria_user
|
|||
|
||||
$result = json_decode($result, true);
|
||||
|
||||
$count_sql = 'SELECT count(*) FROM tincidencia WHERE
|
||||
id_grupo IN ('.implode(',', array_keys($groups)).')'.$filter.'
|
||||
ORDER BY actualizacion DESC';
|
||||
$count = count($result);
|
||||
|
||||
$count = db_get_value_sql($count_sql);
|
||||
$result = array_slice($result, $offset, $config['block_size']);
|
||||
|
||||
if (empty($result)) {
|
||||
$result = [];
|
||||
|
|
|
@ -374,7 +374,7 @@ if (is_ajax()) {
|
|||
'field'.$i.'_recovery_value',
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
__('None'),
|
||||
0,
|
||||
true,
|
||||
false,
|
||||
|
|
|
@ -1143,6 +1143,8 @@ if (scalar(@types) != 0) {
|
|||
$query_string .= $type->{'id'} . ',' . $type->{'name'} . ';';
|
||||
}
|
||||
|
||||
$query_string = substr $query_string, 0, -1;
|
||||
|
||||
db_do($dbh, "UPDATE talert_commands SET fields_descriptions='[\"Ticket title\",\"Ticket group ID\",\"Ticket priority\",\"Ticket owner\",\"Ticket type\",\"Ticket status\",\"Ticket description\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\"]' WHERE name=\"Integria IMS Ticket\"");
|
||||
db_do($dbh, "UPDATE talert_commands SET fields_values='[\"\", \"\", \"\",\"\",\"" . $query_string . "\",\"\",\"\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\",\"_integria_type_custom_field_\"]' WHERE name=\"Integria IMS Ticket\"");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue