Skip to content

Commit aafd451

Browse files
Bugfix: Fix bug in select (dropdown ) custom field controller when nothing is selected. Wunderbyte-GmbH/Wunderbyte-GmbH#1365
1 parent f1e69ac commit aafd451

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

classes/local/customfield/field/select/wbt_field_controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function get_option_value_by_key(string|array $key, bool $formatstring =
5757
}
5858
$i = $index - 1;
5959
if ($i < 0 || $i >= count($optionsarray)) {
60-
return wbt_field_controller_info::WBTABLE_CUSTOMFIELD_VALUE_NOTFOUND;
60+
return '';
6161
}
6262
$returnvalue = $optionsarray[$i];
6363
if ($formatstring) {

0 commit comments

Comments
 (0)