Fixed runtime error if no signature is defined for group.
This commit is contained in:
parent
84dfdc2b63
commit
b8b02ca845
1 changed files with 12 additions and 9 deletions
|
@ -268,6 +268,8 @@ class TicketsController < ApplicationController
|
|||
log_view( ticket )
|
||||
|
||||
# get signature
|
||||
signature = {}
|
||||
if ticket.group.signature
|
||||
signature = ticket.group.signature.attributes
|
||||
|
||||
# replace tags
|
||||
|
@ -278,6 +280,7 @@ class TicketsController < ApplicationController
|
|||
:user => current_user,
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
# get related articles
|
||||
ticket = ticket.attributes
|
||||
|
|
Loading…
Reference in a new issue