We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27504
    • 7 Posts
    Hello. I have multi-select TV in resource, and
    $resource->getTVValue('tvname')
    returns '23' if 2 and 3 are selected. But if i execute
    $resource->setTVValue('tvname', '23')
    -
    $resource->getTVValue('tvname')
    still returns '23', but theese values are not selected in manager. Also, if execute
    $resource->setTVValue('tvname', '2')
    , then item number 2 is selected in manager - this problem happens only if i try to save 2+ items. What can be the problem?

    This question has been answered by Skippi. See the first response.

    • discuss.answer
      • 27504
      • 7 Posts
      Ok, problem is solved
      $resource->setTVValue('tvname', '2||3')

      works fine