[FIX] report: barcode controller: correct humanreadable handling

humanreadble arg comes as a string, so bool(0) was True. Cast it to int before.
This commit is contained in:
vnsoft
2015-12-16 14:48:25 +01:00
committed by Simon Lejeune
parent 47359af3af
commit 4b635a1da7
+1 -1
View File
@@ -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