Closed entr closed 8 years ago
The documentation for Papi 3 isn't the right documentation for Papi 3.1. The changelog for Papi 3.1 says that the group property has been changed. Will take a look at why link property don't work with a group.
The group property in 3.x isn't so good and it will be a big thing to fix it in another way than it is fixed in 3.1. I would recommend to use 3.1 if possible or use another property right now until 3.1 is out.
The bug that caused the link property bug in 3.1 was a bug with the repeater and the conversion of child properties (e.g repeater in repeater). The link property values did look like a child property for the repeater class and when the values didn't had the expected values it did fail.
This is now fixed in master
branch and will be out in the next beta or the final release.
Any thoughts on the 3.0 not showing current/saved values in link
property? I'm talking admin UI. I can confirm meta is saved.
Yep, the property can't be loaded right since it's in a group, but the property isn't saved within a group so right now it's a missmatch between the saved data and how it would be render and that is changed in 3.1 and it will be some changes from how the data is saved between 3.0 and 3.1. It wouldn't be so good to do this change in a patch release.
Thanks. So if I need group working right now I need to require dev-master
?
Yes, that's the case.
I'm also experiencing an issue with a group inside a repeater. Only the first group (in first repeater item) is processed/saved properly. Don't know if it's officially supported though. I'm posting it here since it might be related.
It's not supported yet.
If you want you can try the fix for group property inside repeater property. It should be fixed in master
branch now.
Thanks man, I will and report back tonight.
I can't get
link
property to work inside a group. Please note I haven't tested it NOT being in a group.What I expected
The
link
admin control to be populated with saved data. Instead it shows as empty in both tested Papi version. The meta is saved though.What happened instead
In Papi 3.1.0-beta2 the meta is saved with group prefix, which according to documentation seems wrong (don't know if docs are up to date for 3.1).
From
wp_post_custom()
:In Papi 3.0.7 meta seems to be saved under right meta keys however my admin control is still showing as empty after save.
From
wp_post_custom()
:Steps to reproduce
What versions of softwares are you using?