Forums

Problem with {fn:check_delete_result}

Fredolino 20 Jul, 2019
Hi,

I wanted to ask if there is a problem with the "check-messages".
The messages are displayed when editing but if I have saved data or now when checking for deletion no messages are displayed.
For example:

Event-Tab:
{fn:delete_article}
{fn:check_delete_result}
{redirect:index}

Thanx F.
healyhatman 21 Jul, 2019
Well what do you have in check_delete_result?
Fredolino 21 Jul, 2019
Hi,

this in data provider:
{var:save_beob_new}

this in values setup:
true:{success:beob saved successfully.}
false:{error:saving the beob failed.}

just i have delete this check and display only the message with {success: message…..} in view events
:-)
healyhatman 22 Jul, 2019
And what does the debug show
healyhatman 22 Jul, 2019
Answer
1 Likes
Scratch that never mind

There was a change to the save data functions several versions ago, you need to check for {var.empty:savefunction}

If the save was successful the savefunction returns a copy of the data it saved. If it fails it will be empty.
This topic is locked and no more replies can be posted.