mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Changed query for get default actions in templates
This commit is contained in:
parent
c6c9b63338
commit
1805a0910e
@ -203,7 +203,7 @@ if ($searchFlag) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($actionID != -1 && $actionID != '') {
|
if ($actionID != -1 && $actionID != '') {
|
||||||
$where .= ' AND talert_template_modules.id IN (SELECT id_alert_template_module FROM talert_template_module_actions WHERE id_alert_action = '.$actionID.')';
|
$where .= ' AND talert_template_modules.id IN (SELECT id_alert_template_module FROM talert_template_module_actions WHERE id_alert_action = '.$actionID.') OR talert_template_modules.id IN (SELECT id FROM talert_template_modules ttm WHERE ttm.id_alert_template IN (SELECT tat.id FROM talert_templates tat WHERE tat.id_alert_action = '.$actionID.'))';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($enabledisable != -1 && $enabledisable != '') {
|
if ($enabledisable != -1 && $enabledisable != '') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user