* Fix #639 and #638 (Error 500 opening a ticket view) * Only initialize preferences if not already filled.
This commit is contained in:
parent
303db3e7c3
commit
8925c6f518
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ class Taskbar < ApplicationModel
|
||||||
return true if local_update
|
return true if local_update
|
||||||
|
|
||||||
# find other same open tasks
|
# find other same open tasks
|
||||||
|
if !preferences
|
||||||
|
preferences = {}
|
||||||
|
end
|
||||||
preferences[:tasks] = []
|
preferences[:tasks] = []
|
||||||
Taskbar.where(key: key).order(:created_at).each { |taskbar|
|
Taskbar.where(key: key).order(:created_at).each { |taskbar|
|
||||||
if taskbar.id == id
|
if taskbar.id == id
|
||||||
|
|
Loading…
Reference in a new issue