A
A
Alexander Ivanov2016-06-10 10:05:31
1C-Bitrix
Alexander Ivanov, 2016-06-10 10:05:31

What is wrong with array filter?

I make the filter like this:

$GLOBALS['arrFilterTomain'] = Array("ACTIVE" => "Y",
 "PROPERTY" => array('CITYS' => array('VALUE_XML_ID' => '2012'))); 
//ничего не выводит

-------------------------------------------------- -----------------
An example of working filtering from the same feed
//$GLOBALS['arrFilterTomain'] =Array("ACTIVE" => "Y", 
"PROPERTY" => array('TOMAIN' => array('VALUE' => 'Y')));

Wardump
["DISPLAY_PROPERTIES"]=>
      array(3) {
        ["TOMAIN"]=>
        array(36) {
          ....
          ["USER_TYPE_SETTINGS"]=>
          array(1) {
            ["VIEW"]=>
            array(2) {
              ["N"]=>
              string(1) "N"
              ["Y"]=>
              string(1) "Y"
            }
          }
          ...
          ["VALUE"]=>
          string(1) "Y"
          ....
          string(34) "Вывести на главной"
          ["~DEFAULT_VALUE"]=>
          string(1) "Y"
        }
        ["CITYS"]=>
        array(38) {
          ....
          ["VALUE_ENUM"]=>
          string(22) "Новосибирск"
          ["VALUE_XML_ID"]=>
          string(4) "2012"
          ....
        }
      }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2016-06-10
@cimonlebedev

$GLOBALS['arrFilterTomain'] = array("PROPERTY_CITYS_VALUE"=>"Москва%");

Source
web-bi.com/blog/using_arrfilter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question