No Code Attached Yet
avatar MSGroupFM
MSGroupFM
3 May 2024

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

avatar MSGroupFM MSGroupFM - open - 3 May 2024
avatar joomla-cms-bot joomla-cms-bot - change - 3 May 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 May 2024
avatar fgsw
fgsw - comment - 10 Oct 2024

(…) not through the standard form of the control panel (for example, YOOtheme Pro), (…)

So this is a issue of Yootheme?

avatar MSGroupFM
MSGroupFM - comment - 26 Nov 2024

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

avatar alex-revo
alex-revo - comment - 26 Nov 2024

This issue fixed with Yootheme Pro 4.4.12+

avatar brianteeman
brianteeman - comment - 26 Nov 2024

Please close this as it is not and was not a joomla bug.

avatar alikon alikon - change - 26 Nov 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-11-26 15:04:57
Closed_By alikon
avatar alikon alikon - close - 26 Nov 2024

Add a Comment

Login with GitHub to post a comment