Skip to content

Commit c8e4d9d

Browse files
committed
Fix indexer alias generation
1 parent 51359ef commit c8e4d9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

administrator/components/com_finder/src/Table/MapTable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public function check()
7070
$this->alias = ApplicationHelper::stringURLSafe($this->title, $this->language);
7171

7272
if (trim($this->alias) == '') {
73-
$this->alias = md5(serialize($this->getProperties()));
73+
// Do not serialize objects
74+
$this->alias = md5(serialize(array_filter($this->getProperties(), fn ($prop) => !is_object($prop))));
7475
}
7576

7677
return true;

0 commit comments

Comments
 (0)