redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Field Group with field select inside issue

Open massimomarazzi opened this issue 12 years ago • 5 comments

I make a field group with inside select category field and textarea field; issue: first, after save doesn't show the data entered. second, when i add a group, title group is not set. third, in my debug log i have a notice: Undefined variable: sort in \options\redux_panel\ReduxCore\inc\fields\group\field_group.php on line 124 and 184. i add a empty $sort before call.

i have the latest git version.

News for issue #298 ?

Thanks in advance.

massimomarazzi avatar Dec 22 '13 17:12 massimomarazzi

Hi,

Thanks for the nice update on Redux.

Custom grouping is a great features. Again thanks for that.

I am also having the same issue as massimoxma.

I created a custom group with a text box and a text area. When saved and refreshed its not showing the saved value. Same for the slider.

I hope you can fix this easily.

Regards.

enayet avatar Jan 02 '14 12:01 enayet

Hi, I think I fixed the custom grouping issue regarding showing the saved value.

ReduxCore/inc/fields/group/field_group.php

replace line no 166 to 168

if (isset($group[$field['id']]) && !empty($group[$field['id']]) && is_array($group[$field['id']])) { $value = $group[$field['id']];
}

with

if (isset($group[$field['id']]) && !empty($group[$field['id']])) { $value = $group[$field['id']];
}

Reason:

$group[$field['id']] is not an array.

It seems working for me. Hope this helps.

Thanks.

enayet avatar Jan 02 '14 13:01 enayet

Applied. Thanks.

dovy avatar Jan 02 '14 17:01 dovy

Welcome :)

enayet avatar Jan 02 '14 17:01 enayet

Great ! thanks

massimomarazzi avatar Jan 02 '14 17:01 massimomarazzi