Fix error while generating pdf when venue is nil
Error in generating pdf for ticket when venue is not set is fixed.Showing venue in pdf only if venue exist. Closes https://github.com/opensuse/osem/issues/1683
This commit is contained in:
parent
cb20dca10a
commit
81a4598c87
1 changed files with 3 additions and 1 deletions
|
|
@ -51,7 +51,9 @@ class TicketPdf < Prawn::Document
|
|||
move_down 70
|
||||
draw_text @conference.title.to_s, at: [@mid_horizontal + 30, cursor - 30], size: 12
|
||||
draw_text @conference.organization.name.to_s, at: [@mid_horizontal + 30, cursor - 50], size: 12
|
||||
draw_text @conference.venue.name.to_s, at: [@mid_horizontal + 30, cursor - 70]
|
||||
if @conference.venue
|
||||
draw_text @conference.venue.name.to_s, at: [@mid_horizontal + 30, cursor - 70]
|
||||
end
|
||||
move_up 130
|
||||
move_down @mid_vertical
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue