Index: branches/5.0.x/core/units/helpers/custom_fields_helper.php =================================================================== diff -u -N -r12734 -r13372 --- branches/5.0.x/core/units/helpers/custom_fields_helper.php (.../custom_fields_helper.php) (revision 12734) +++ branches/5.0.x/core/units/helpers/custom_fields_helper.php (.../custom_fields_helper.php) (revision 13372) @@ -1,6 +1,6 @@ ', '%3$s'), Array (TABLE_PREFIX, $this->Application->GetVar('m_lang')), $valueString) ); + if ($parse_sqls) { + $string = trim( str_replace(Array('', '%3$s'), Array (TABLE_PREFIX, $this->Application->GetVar('m_lang')), $valueString) ); + } + else { + $string = $valueString; + } if (preg_match_all('/(.*?)<\/SQL>/', $string, $regs)) { $i = 0;