} elseif ($bPropertyAjax) { CUtil::JSPostUnescape(); } if ($bPropertyAjax) $str_IBLOCK_ELEMENT_SECTION = $_REQUEST["IBLOCK_SECTION"]; if (is_array($str_IBLOCK_ELEMENT_SECTION)) $str_IBLOCK_ELEMENT_SECTION = array_unique($str_IBLOCK_ELEMENT_SECTION); $clearedByCopyProperties = array(); if ($bCopy) { $clearedByCopyProperties = CIBlockPropertyTools::getClearedPropertiesID($IBLOCK_ID); } $arPROP_tmp = array(); $properties = CIBlockProperty::GetList(array("SORT"=>"ASC", "NAME"=>"ASC"), array("IBLOCK_ID"=>$IBLOCK_ID, "ACTIVE"=>"Y", "CHECK_PERMISSIONS"=>"N")); while($prop_fields = $properties->Fetch()) { $prop_values = array(); $prop_values_with_descr = array(); if ( $bPropertyAjax && is_array($_POST["PROP"]) && array_key_exists($prop_fields["ID"], $_POST["PROP"]) ) { $prop_values = $_POST["PROP"][$prop_fields["ID"]]; $prop_values_with_descr = $prop_values;