Fixes #3703 - Organization removal does not clear organization_id from Tickets.
This commit is contained in:
parent
506c6aef8c
commit
ac5b0b85ce
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class Organization < ApplicationModel
|
||||||
User.where(organization_id: id).find_each do |user|
|
User.where(organization_id: id).find_each do |user|
|
||||||
user.update(organization_id: nil)
|
user.update(organization_id: nil)
|
||||||
end
|
end
|
||||||
Ticket.where(organization_id: id) do |ticket|
|
Ticket.where(organization_id: id).find_each do |ticket|
|
||||||
ticket.update(organization_id: nil)
|
ticket.update(organization_id: nil)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue