Forum Replies Created

Viewing 3 Topics - 1 through 3 (of 3 total)
Author Posts
September 11, 2014 at 7:08 pm in reply to: CheckBox, Radio, MultiSelect duplicate values 26685
David David

Sorry, I left something out when I posted my code.

wp-content/plugins/wp-user-frontend-pro/admin/form.php

Line 1402

Replace:

$view_option[$opt_value] = $options_value;

with

$view_option[$key][$opt_value] = $options_value;

Line 1405

Replace:

$_POST['wpuf_input']['options'] = $view_option;

with

$_POST['wpuf_input'][$key]['options'] = $view_option[$key];

I forgot to put the extra [$key] in the last line with $view_option. That’s why it was showing Array..

Try that and it should work.

September 11, 2014 at 5:56 am in reply to: CheckBox, Radio, MultiSelect duplicate values 26627
David David

I think I found the issue.
wp-content/plugins/wp-user-frontend-pro/admin/form.php

Basically, seems like it was loading all options values into a single variable.

Line 1402

Replace:

$view_option[$opt_value] = $options_value;

with

$view_option[$key][$opt_value] = $options_value;

Line 1405

Replace:

$_POST['wpuf_input']['options'] = $view_option;

with

$_POST['wpuf_input'][$key]['options'] = $view_option;

September 6, 2014 at 4:40 am in reply to: CheckBox, Radio, MultiSelect duplicate values 26367
David David

Likewise, same issue.

Viewing 3 Topics - 1 through 3 (of 3 total)