Skip to content

Commit

Permalink
MVC/BaseListField - empty item selection issue, probably php 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Aug 1, 2023
1 parent f3ffccc commit 68ae7bd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -107,7 +107,7 @@ public function getNodeData()
$result = array();
// if option is not required, add empty placeholder
if (!$this->internalIsRequired && !$this->internalMultiSelect) {
$result[""] = array("value" => $this->internalEmptyDescription, "selected" => empty($this->internalValue));
$result[""] = array("value" => $this->internalEmptyDescription, "selected" => empty((string)$this->internalValue) ? 1 : 0);
}

// explode options
Expand Down

0 comments on commit 68ae7bd

Please sign in to comment.