Index: branches/RC/core/units/general/custom_fields.php =================================================================== diff -u -N -r10857 -r10860 --- branches/RC/core/units/general/custom_fields.php (.../custom_fields.php) (revision 10857) +++ branches/RC/core/units/general/custom_fields.php (.../custom_fields.php) (revision 10860) @@ -7,15 +7,22 @@ */ class InpCustomFieldsHelper extends kHelper { - function GetValuesHash($values_list) + /** + * Parses given option string and returns associative array + * + * @param string $values_list + * @param string $separator + * @return Array + */ + function GetValuesHash($values_list, $separator = VALUE_LIST_SEPARATOR) { - $optionValuesStr = trim($this->ParseConfigSQL($values_list), VALUE_LIST_SEPARATOR); + $optionValuesStr = trim($this->ParseConfigSQL($values_list), $separator); if (!$optionValuesStr) { // no options, then return empty array return Array(); } - $optionValuesTmp = explode(VALUE_LIST_SEPARATOR, $optionValuesStr); + $optionValuesTmp = explode($separator, $optionValuesStr); $optionValues = Array(); if (substr_count($optionValuesStr, '=') != count($optionValuesTmp)) {