Juan Carlos Gonzalez
-
2008-01-12
There is a way to break the method:
BizDataObj::ConvertSqlExpresion()
If for any reason the replaced text after line 1199 [[sqlstr = str_replace("[$fieldname]", $tableColumn, $sqlstr);]] is shorter than the original one, the strpos calculated in that iteration might cause substr_lr to fail to find the next field name between []
So I added up at line 1200:
$startpos = strpos($sqlstr, '['); // Move startpos to the first [ (if it exists) in order to be detect by next itteration
Final version attached based on openbiz 2.2.2rc