- πΊπΈUnited States alphex Atlanta, GA USA
I'm unable to apply the patch from #5 on ALPHA 5 now.
Same result for the DEV branch
I'm having an issue in one of the fields where the field is a multivalue select list and its first option key is coincidentally a substring of the field's machine name as follows:
field name: field_responsibility
first option: sp|Social platform
last option: other|Other
and I want to show some other field when the user chooses the "other" option. I added the dependency but nothing happened in the form and the field was still visible. After some debugging, I found that in OptionsButtons.php there's a str_replace statement that doesn't work in this case.
$selector_key = str_replace($field['#return_value'], current($value), $selector);
Since the $selector value is [name="field_responsibility[sp]"]
str_replaces outputs the incorrect value [name="field_reotheronsibility[other]"]
where the correct output for the condition to work is [name="field_responsibility[other]"]
Needs work
4.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I'm unable to apply the patch from #5 on ALPHA 5 now.
Same result for the DEV branch