Please Log in or Create an account to join the conversation.
The below is typically what we do to ensure a successful store.Just one last question : how can I get the return after $item->store in the autoaction to output a json success or failure ?
something like if(true) in the autoaction is enough ?
Yes, the triggers are being called, but the direct gallery triggers aren't so you'll probably need to make a copy of "CB Gallery - Privacy - Save" and add more triggers to it. It currently is relying on the following.Also are you sure that the triggers are working when calling directly the autoaction or do I need something else ? For now the file is correctly added with the good settings but it does not seem that any auto action for Gallery is triggered with gallery_onBeforeUpdateItem or gallery_onBeforeCreateItem. The gallery_privacy[] added in the formData is also not taken into account and saved.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Might be being filtered out at storage if connection types aren't available to that privacy selector. Aside from that I've no idea. You'd have to trial and error until you've something that works. You can also just directly insert the privacy rule into the database as well if you wanted.is there some kind of special thing to do ?
If I look at the post data from the website and from my code with the auto action they are exactly the same and both loaded into the gallery_privacy array
Any idea ?
I cannot help you debug your custom code. The trigger is likely firing (as confirmed by the privacy storing auto action), but there might be an error happening in the code somewhere.I tried to duplicate it and change the user to [var1_user_id] but nothing seems to work and I cannot figure why
Do you have any idea about why this second auto action would not fire ? or a way to solve this ?
Please Log in or Create an account to join the conversation.