From: Sven Schöling Date: Tue, 1 Aug 2017 11:11:54 +0000 (+0200) Subject: ShippedQty: Übergabe von Strings als ids abfangen X-Git-Tag: release-3.5.4~923 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c4104eb32fe068961c83d5905816686637d4abc6;p=kivitendo-erp.git ShippedQty: Übergabe von Strings als ids abfangen --- diff --git a/SL/Helper/ShippedQty.pm b/SL/Helper/ShippedQty.pm index 5135823e7..af2a4f47c 100644 --- a/SL/Helper/ShippedQty.pm +++ b/SL/Helper/ShippedQty.pm @@ -258,6 +258,7 @@ sub normalize_input { $self->objects($data); } else { die 'object or reference in data while expecting ids' if any { ref($_) } @$data; + die 'ids need to be numbers' if any { ! ($_ * 1) } @$data; $self->oe_ids($data); }