Illegal Offset when using multi-select fields
-
automatorwp_get_array_key_value() does not handle multi-select (array) keys by default, so the issue bubbles up to automatorwp_get_automation_item_option_replacement()
The below snippet should fix it, by deferring to the next block of logic:
if( in_array( $field['type'], array( 'select', 'automatorwp_select', 'automatorwp_select_filter' ) ) && ! is_array( $value ) ) {
- This topic was modified 2 years, 2 months ago by . Reason: Used Markdown syntax for solution codeblock. My bad
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Illegal Offset when using multi-select fields’ is closed to new replies.