Closed (outdated)
Project:
erp
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
11 Feb 2011 at 21:46 UTC
Updated:
9 Apr 2017 at 23:50 UTC
Jump to comment: Most recent
it appears that line 531 of erp_item module is
while (strlen($node->supp_code;) > 2) {
and should be
while (strlen($code) > 2) {
Comments
Comment #1
singularoYes.
You can safely remove that whole "while () { }" block, and the if ($found) {} block below.
The if/break within the while loop stops it from being an issue that we've noticed, but if you don't have enough items to make 5 alternates, it would cause an infinite loop
I'll remove that whole section and commit an update soon, not the best idea i've ever had. ;-)
Comment #2
singularo