10 years ago
2
Topic

Hi all,

I'm trying to store the changes made to a group x field, but I have trouble making the comparison between it's original state and the state at the moment it's stored. 

I use the BeforeRender field to store the group x to a session var ($_SESSION['original_group_x']) and I've tried both BeforeStore and AfterStore to store the changed group x to a second session var ($_SESSION['current_group_x']). I use this method with all kinds of other field types and it works fine. But not for group x. Only the first session var returns values. The second var is always empty, no matter what I try. Why?

Is there anyone that can tell me to get the group x values at the moment I'm trying to store them, in a way that I could compare them to the original values?

Kind regards,

Richard

Get a Book for SEBLOD
10 years ago
0
Level 1

I checked the results of my scripts with JDump to see if there was any difference between the plugins and I found there is. The BeforeRender plugin has the form property where I can get the values of group x fields, but the form property is missing when I use the BeforeStore and AfterStore plugins. I don't see an alternative property that would give me access to any of the values. 

I have a group x field and I want to have the differences between the moment the field is rendered and the moment it is saved. Anyone any ideas?

10 years ago
0
Level 1

Hi rvennix,

Currently you can grab the group_x values using this syntax $config['post'][GROUP_X_FIELD_NAME].

Thank you for the report on the tracker, we'll try to improve this part.

Regards,
Saba.

Get a Book for SEBLOD