Improved code to support admin user with different user login (#767).
This commit is contained in:
parent
87aedd8cc5
commit
64c86a758f
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ returns
|
||||||
self.state_id = Ticket::State.lookup(name: 'merged').id
|
self.state_id = Ticket::State.lookup(name: 'merged').id
|
||||||
|
|
||||||
# rest owner
|
# rest owner
|
||||||
self.owner_id = User.find_by(login: '-').id
|
self.owner_id = 1
|
||||||
|
|
||||||
# save ticket
|
# save ticket
|
||||||
save!
|
save!
|
||||||
|
|
Loading…
Reference in a new issue