Conversation
Signed-off-by: DAnn2012 <dannunziata@hotmail.it>
PR Summary
|
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
This commit adds a new 'Save Value When Hidden' option for fields with conditional logic. Problem: When a conditional field's parent condition is set to false, child field values get reset to null (Issue #7475). Solution: - Added 'conditional_logic_save_value' boolean option in Field.php - Modified PodsAPI.php to check this option before clearing hidden field values - When enabled, the field value is preserved even when the field is not visible Fixes #7475
Added 'conditional_logic_save_value' option to field configuration that allows preserving field values when the field is hidden by conditional logic. Changes: - Field.php: Added new 'conditional_logic_save_value' boolean option - PodsMeta.php: Skip adding hidden fields to save data when option is enabled This prevents the empty default value from overwriting existing database values when conditional logic hides a field during form submission.
…ionship When the 'Sync associated taxonomy with this relationship' option is enabled on a Pick field but no bidirectional relationship (sister_id) is configured, PHP warnings were raised because the code tried to access array offsets on null values for $related_pod and $related_field. The fix moves taxonomy sync logic to execute first (it does not need the bidirectional relationship data), then adds an early return if no bidirectional relationship exists. This prevents the code from attempting to access properties on null variables. Fixes #7477
…s invalid Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
…to before the callbacks Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
…uthy and pods_is_falsey, add tests Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
…ead-only if person does not have permission Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
…or references for blues etc Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
…-on AND depends-on-any, etc) Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
…ond boolean group UI Access Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
PodsBot
left a comment
There was a problem hiding this comment.
Code analysis identified issues
action-phpcs-code-review has identified potential problems in this pull request during automated scanning. We recommend reviewing the issues noted and that they are resolved.
phpcs scanning turned up:
Powered by rtCamp's GitHub Actions Library
…removal in Pods 3.1 Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
Automated changes by create-pull-request GitHub action