Commit 33a961e9 authored by Vincent Pelletier's avatar Vincent Pelletier

Add sanity check for the case where reference_max is lower than reference_min.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13514 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ead3ebf4
......@@ -178,7 +178,9 @@ else:\n
check_quantity = 1\n
if same_type(reference_range_min, 0) and \\\n
same_type(reference_range_max, 0) and \\\n
reference_range_max - reference_range_min + 1 != check_quantity * quantity:\n
(reference_range_max - reference_range_min + 1 != check_quantity * quantity\n
or\n
reference_range_max < reference_range_min):\n
message = \'The range is not valid\'\n
generate_error(line,\'reference_range_min\',message)\n
generate_error(line,\'reference_range_max\',message)\n
......
114
\ No newline at end of file
115
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment