Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1502003 Fix Bug Undefined index when create dropdown fields from mod… #10391

Open
wants to merge 2 commits into
base: hotfix
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion modules/DynamicFields/templates/Fields/Forms/enum2.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ function get_body(&$ss, $vardef)
} else {
//since we do not have a default value then we should assign the first one.
$key = $dropdowns[0];
$default_dropdowns = $my_list_strings[$key];
//#1502003: condition is check if my_list_strings is set then continue :Fixed By HENILCODES
if (isset($my_list_strings[$key])) {
$default_dropdowns = $my_list_strings[$key];
}
}

$selected_dropdown = '';
Expand Down