Skip to content
Snippets Groups Projects
Commit 7a64756b authored by Calvin Walton's avatar Calvin Walton
Browse files

RaP: When generating poll image, grab the presentation name correctly.

It was previously trying to get the presentation name from the wrong variable,
which resulted in a nil value (which was treated as a blank string in
filenames). This caused the poll images to not be inside the presentation
subdirectories, and the poll image references in the svg contained a `//`
path, which would break the recording if it was uploaded to e.g. AWS S3.
parent c6674833
No related branches found
No related tags found
No related merge requests found
......@@ -368,7 +368,7 @@ def svg_render_shape_poll(g, slide, shape)
result = JSON.load(shape[:result])
num_responders = shape[:num_responders]
presentation = shape[:presentation]
presentation = slide[:presentation]
max_num_votes = result.map{ |r| r['num_votes'] }.max
dat_file = "#{$process_dir}/poll_result#{poll_id}.dat"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment