mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
SyncRule: avoid issues with auto-aliased columns
Affects some ZF versions
This commit is contained in:
parent
e871c1c534
commit
ef4eecae6f
@ -50,7 +50,7 @@ class SyncRule extends DbObject
|
||||
$db->select()
|
||||
->from(
|
||||
'sync_property',
|
||||
'(CASE WHEN MAX(priority) IS NULL THEN 1 ELSE MAX(priority) + 1 END)'
|
||||
array('priority' => '(CASE WHEN MAX(priority) IS NULL THEN 1 ELSE MAX(priority) + 1 END)')
|
||||
)->where('rule_id = ?', $this->id)
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user