From ef4eecae6fe7e4c1d8232dc257d6f69764a31a0f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 2 Dec 2015 15:05:52 +0100 Subject: [PATCH] SyncRule: avoid issues with auto-aliased columns Affects some ZF versions --- library/Director/Objects/SyncRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Objects/SyncRule.php b/library/Director/Objects/SyncRule.php index 66abe3a9..97eba344 100644 --- a/library/Director/Objects/SyncRule.php +++ b/library/Director/Objects/SyncRule.php @@ -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) ); }