forked from Wavyzz/dolibarr
Fix api_setup.class.php (#33930)
This commit is contained in:
@@ -85,8 +85,9 @@ class Setup extends DolibarrApi
|
||||
|
||||
$sql = "SELECT t.rowid as id, t.elementtype, t.code, t.contexts, t.label, t.description, t.rang";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."c_action_trigger as t";
|
||||
$sql .= " WHERE 1=1";
|
||||
if (!empty($elementtype)) {
|
||||
$sql .= " WHERE t.elementtype = '".$this->db->escape($elementtype)."'";
|
||||
$sql .= " AND t.elementtype = '".$this->db->escape($elementtype)."'";
|
||||
}
|
||||
// Add sql filters
|
||||
if ($sqlfilters) {
|
||||
|
||||
Reference in New Issue
Block a user