Skip to content
Snippets Groups Projects
Commit 4b635a1d authored by vnsoft's avatar vnsoft Committed by Simon Lejeune
Browse files

[FIX] report: barcode controller: correct humanreadable handling

humanreadble arg comes as a string, so bool(0) was True. Cast it to int before.
parent 47359af3
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ class ReportController(Controller):
at the bottom of the output image
"""
try:
width, height, humanreadable = int(width), int(height), bool(humanreadable)
width, height, humanreadable = int(width), int(height), bool(int(humanreadable))
barcode = createBarcodeDrawing(
type, value=value, format='png', width=width, height=height,
humanReadable = humanreadable
......
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