Quantcast
Viewing all articles
Browse latest Browse all 2504

$answer->Products inside custom process failing

Topic by JHutch2000

Content

I'm using the following code to try to pull all the product IDs for a given answer.  If I run the code in a CP page, it works.  If I run it in a custom process, it returns null values.  (Similar behavior for Categories)

In CP page, it pulls the answer via $answer = RNCPHP\Answer::fetch($aid,RNCPHP\RNObject::VALIDATE_KEYS_OFF);

In Custom Process, it runs on the answer update event.

NOTE: All other answer fields I try to access so far seem to work.  It is just the product and category fields that refuse to show up in a Custom Process.

What am I missing?

 

 

Version

May 2014

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles