tizeta
Forum Replies Created
-
Hi @marius_codeinwp,
you’re absolutely right, it was another resource causing it..
There’s no problem withprefix="og: http://ogp.me/ns#"My bad, thank you very much!
As I wrote, it’s in the plugin’s folder, in
core/um-filters-fields.php.Lines 310 and 313, anyway you can search for it with your text editor.
Bye!
Ok I guess I found the bug:
in
core/um-filters-fields.phpif( isset( $_POST[ $metakey ] ) && isset( $array['conditional_value'] ) && $_POST[ $metakey ] !== $array['conditional_value'] )must become:
if( isset( $_POST[ $metakey ] ) && isset( $array['conditional_value'] ) && $_POST[ $metakey ][0] !== $array['conditional_value'] )and
if( isset( $_POST[ $metakey ] ) && isset( $array['conditional_value'.$a] ) && $_POST[ $metakey ] !== $array['conditional_value'.$a] )must become:
if( isset( $_POST[ $metakey ] ) && isset( $array['conditional_value'.$a] ) && $_POST[ $metakey ][0] !== $array['conditional_value'.$a] )basically
$_POST[ $metakey ]is an array so it was missing the index[0]I hope this is correct, it works for me
confirmed, happening to me too.
Ultimate Member v1.3.88 on vanilla WordPress v4.9.4 without any other plugin.
Conditional fields can be submitted empty even if they are required.EDIT: it happens the second time you submit the form.
The first time
$array['required'](incore/um-actions-form.php) is correctly set to1.The second time you submit the fields,
$array['required']is0checking what’s going on in
um_get_custom_field_array($array, $fields)incore/um-filters-fields.php- This reply was modified 8 years, 2 months ago by tizeta. Reason: added details