diff options
Diffstat (limited to 'app/models/group.rb')
-rw-r--r-- | app/models/group.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index 3e4bdf09a..5d49a138a 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -87,6 +87,6 @@ class Group < Principal def remove_references_before_destroy return if self.id.nil? - Issue.update_all 'assigned_to_id = NULL', ['assigned_to_id = ?', id] + Issue.where(['assigned_to_id = ?', id]).update_all('assigned_to_id = NULL') end end |