mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +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(
|
return $db->fetchOne(
|
||||||
$db->select()
|
$db->select()
|
||||||
->from(
|
->from(
|
||||||
'sync_property',
|
array('p' => 'sync_property'),
|
||||||
array('priority' => '(CASE WHEN MAX(priority) IS NULL THEN 1 ELSE MAX(priority) + 1 END)')
|
array('priority' => '(CASE WHEN MAX(p.priority) IS NULL THEN 1 ELSE MAX(p.priority) + 1 END)')
|
||||||
)->where('rule_id = ?', $this->id)
|
)->where('p.rule_id = ?', $this->id)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user