Skip to content

Commit 3507660

Browse files
authored
Fix caching for Predefinedlist getOptions method (joomla#45885)
1 parent 1530827 commit 3507660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/src/Form/Field/PredefinedlistField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function setup(\SimpleXMLElement $element, $value, $group = null)
9898
protected function getOptions()
9999
{
100100
// Hash for caching
101-
$hash = md5($this->element);
101+
$hash = md5($this->element->asXML());
102102
$type = strtolower($this->type);
103103

104104
if (!isset(static::$options[$type][$hash]) && !empty($this->predefinedOptions)) {

0 commit comments

Comments
 (0)