mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
SyncRule: one more attempt to avoid ZF magic
This commit is contained in:
parent
e45cb51031
commit
d37991627a
@ -49,9 +49,9 @@ class SyncRule extends DbObject
|
||||
return $db->fetchOne(
|
||||
$db->select()
|
||||
->from(
|
||||
'sync_property',
|
||||
array('priority' => '(CASE WHEN MAX(priority) IS NULL THEN 1 ELSE MAX(priority) + 1 END)')
|
||||
)->where('rule_id = ?', $this->id)
|
||||
array('p' => 'sync_property'),
|
||||
array('priority' => '(CASE WHEN MAX(p.priority) IS NULL THEN 1 ELSE MAX(p.priority) + 1 END)')
|
||||
)->where('p.rule_id = ?', $this->id)
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user