The schemaorg entry is deleted if no data has been received from the form
Steps to reproduce the issue
When saving materials in Joomla 5.1 not through the standard form of the control panel (for example, YOOtheme Pro), the schemaorg is deleted.
Expected result
The schemaorg plugin should ignore form submission without a schema.
Actual result
Schemaorg plugin removes a record from a table _schemaorg
System information (as much as possible)
Joomla 5.1
Additional comments
(…) not through the standard form of the control panel (for example, YOOtheme Pro), (…)
So this is a issue of Yootheme?
In the onContentAfterSave method of the "plg_system_schemaorg" there is code that clears the contents of the record in the table if the properties of the array with data are empty:
if (empty($data['schema']) || empty($data['schema']['schemaType']) || $data['schema']['schemaType'] === 'None') { $this->deleteSchemaOrg($itemId, $context); return; }
It seems to me that this is not a correct check, because if editing Article outside the com_content, for example through YOOtheme Pro builder, then the data is cleared, because there is no standard form for sending data
This issue fixed with Yootheme Pro 4.4.12+
Please close this as it is not and was not a joomla bug.