Form Field Manager - HTML and Action Hook cause bugs #7170
Replies: 1 comment
-
Hi @pulsovi, we are aware you have opened an issue for this bug related problem. An internal ticket has been created. Reference: Form Field Manager - HTML and Action Hook cause bugs #7176 for additional information. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am a WordPress plugin developer and I am working on a website customization plugin for a client.
During my work, I detected a bug in this plugin: https://givewp.com/addons/form-field-manager/
Scope
I noticed that the management of the
name
property of unconventional fields is buggy.Precisely in the
action_hook
andhtml
custom fields that can be added by the plugin.Symptoms
'name' (Meta_key) conflict with other fields, so :
_1
postfix from meta_key of the follower fieldTest steps
What should happen
The text field must keep its meta key value
What do happen
The text field meta key is suffixed with
_1
Diagnosis
Here are my observations:
The
HTML
field section do not includes any hidden<input>
s for its name.seeing
give-form-field-manager/includes/admin/admin-form.php@save_form_meta
.When submitting (POST) the form admin page, the
"name"
of the"html"
field will be taken from the value saved for the field which is at its position in the order of the list of fields.But at this position, there was the text field. It's therefore its name which is monopolized by the HTML and which is now reserved and prohibited for other fields
So, when saving the text field, a suffix is added to its name and can no longer be removed.
Beta Was this translation helpful? Give feedback.
All reactions