Merge branch '3141-SQL-query-a-la-propia-metaconsola' into 'develop'

fix metaconsole sql items creation

See merge request artica/pandorafms!2097

Former-commit-id: a2efa5704837d09eec24f144eb0fcc5b922b856a
This commit is contained in:
Daniel Rodriguez 2019-02-19 18:08:14 +01:00
commit 0352ef2b70
1 changed files with 0 additions and 11 deletions

View File

@ -1638,17 +1638,6 @@ switch ($action) {
$values['server_name'] = get_parameter('combo_server');
}
if (is_metaconsole()) {
// For SQL Query check if it is setted in the meta
if ($values['type'] == 'sql') {
if (empty($values['server_name'])) {
$good_format = false;
}
}
}
$values['id_agent'] = get_parameter('id_agent');
$values['id_gs'] = get_parameter('id_custom_graph');
if (($values['type'] == 'alert_report_agent') or ($values['type'] == 'event_report_agent') or ($values['type'] == 'agent_configuration') or ($values['type'] == 'group_configuration')) {