mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#11318 added funcion for validate sql when create item
This commit is contained in:
parent
6b17837c4d
commit
25d1b2a5cd
@ -2202,7 +2202,7 @@ switch ($action) {
|
|||||||
$good_format = db_validate_sql($sql);
|
$good_format = db_validate_sql($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
$values['external_source'] = get_parameter('sql');
|
$values['external_source'] = $sql;
|
||||||
}
|
}
|
||||||
|
|
||||||
$values['historical_db'] = get_parameter(
|
$values['historical_db'] = get_parameter(
|
||||||
@ -2939,9 +2939,12 @@ switch ($action) {
|
|||||||
'id_custom'
|
'id_custom'
|
||||||
);
|
);
|
||||||
if ($values['treport_custom_sql_id'] == 0) {
|
if ($values['treport_custom_sql_id'] == 0) {
|
||||||
$values['external_source'] = get_parameter(
|
$sql = get_parameter('sql', '');
|
||||||
'sql'
|
if ($sql !== '') {
|
||||||
);
|
$good_format = db_validate_sql($sql);
|
||||||
|
}
|
||||||
|
|
||||||
|
$values['external_source'] = $sql;
|
||||||
}
|
}
|
||||||
|
|
||||||
$values['historical_db'] = get_parameter(
|
$values['historical_db'] = get_parameter(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user