Forums

"Task Button" not working as expected after update to 6.0.10

serguei_kp 18 Apr, 2019
[div wfd-id="63"]Hello team, [div wfd-id="63"]after update to 6.0.10 "Task Buttons" in "Dynamic actions" demo does not work as expected.
I mean two buttons with names: quick_publish_button and quick_unpublish_button in Views tab.

Now:
After clicking on the button Publish/Unpublish, it disappears, you have to reload the page to see again the button.

Expected behaviour:
after clicking on the Publish/Unpublish button it simply changes from "icon checkmark" to "icon cancel" without any other action required.


Best regards.
healyhatman 18 Apr, 2019
Answer
It's a change with either the save data action or the Switch that actually kind of annoys me a little bit.

Change the data source of the check_publish_result switch to {var.empty and swap the true / false, so true has the error.
serguei_kp 19 Apr, 2019
[div wfd-id="67"]Hi,
in check_article_exists I see this data provider: {var/empty:publish_article}
Which notation is correct ?
{var/empty:publish_article} or {var.empty:publish_article} ?
healyhatman 19 Apr, 2019
Either. But also that's not the thing I told you to change.
serguei_kp 19 Apr, 2019
[div wfd-id="70"]In any case it is working for me, so I will put answer on your reply.
This works for me:
{var/empty:processed_yes_no}
true:{error:article not found.}
false:{fn:choose_processed_link}
This topic is locked and no more replies can be posted.