Improved code to support admin user with different user login (#767).

This commit is contained in:
Rolf Schmidt 2017-04-18 09:52:39 +02:00
parent 87aedd8cc5
commit 64c86a758f

View file

@ -311,7 +311,7 @@ returns
self.state_id = Ticket::State.lookup(name: 'merged').id
# rest owner
self.owner_id = User.find_by(login: '-').id
self.owner_id = 1
# save ticket
save!