[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user