No Code Attached Yet bug
avatar sonvnn
sonvnn
18 Aug 2022

No matter what was preset for an individual post in the backend, it will be overwritten by the post options set in the global settings in the backend (posts / options) when the post is edited and saved in the frontend.

Thus, the user has to go back to the backend and adjust the option of the edited post again and again.

If I have set options for a post in the backend and open and save the editor in the frontend, all individual options set in the backend are overwritten by the global options.

Steps to reproduce the issue

For testing

  1. Posts Options "Show title set to YES by default"
  2. Open or create a post in the backend and set the title display to "do not show" for this individual post, deviating from the standard.
  3. Go to article detail and title disappear.
  4. Open this post in the frontend, edit it and save it.
  5. Now the title is automatically set to "show" again, which I don't think was the case before.
  6. Go to article detail and title "show" again.

So it only happens when editing in the frontend.

System information (as much as possible)

  • Joomla 4.1, Joomla 4.2
  • PHP 8.0 and PHP 8.1
avatar sonvnn sonvnn - open - 18 Aug 2022
avatar joomla-cms-bot joomla-cms-bot - change - 18 Aug 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Aug 2022
avatar sonvnn sonvnn - change - 18 Aug 2022
Title
Posts - Hide title (and all options)- is changed unintentionally when saving in the frontend
[4.2] Posts - Hide title (and all options)- is changed unintentionally when saving in the frontend
avatar sonvnn sonvnn - edited - 18 Aug 2022
avatar brianteeman
brianteeman - comment - 21 Aug 2022

I have followed your instructions and I am unable to replicate this.

avatar chmst
chmst - comment - 21 Aug 2022

I cannot replicate with cassiopeia. @sonvnn Are you using a template override?

avatar ReLater
ReLater - comment - 21 Aug 2022

I can't reproduce it with 4.2.1-rc3-dev (updated since Joomla 4.1 or so). Only CacheCleaner, AkeebaBU installed.

PHP8.1. Online Server.

Logged in as SuperUser in BE and FE. Shared Sessions: NO. Not tested with other groups.

avatar sonvnn sonvnn - change - 22 Aug 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-08-22 02:40:02
Closed_By sonvnn
avatar sonvnn sonvnn - close - 22 Aug 2022
avatar sonvnn
sonvnn - comment - 22 Aug 2022

I re-checked and found the problem came from one of our plugin. Sorry for the inconvenience. I close this issue as resolved and continue to check the issue on our side.

avatar sonvnn
sonvnn - comment - 23 Aug 2022

Hi everyone,
I found issue from Joomla Form:loadFile() function. I tested with Astroid Framework and Helix Framework got same issue, too.

When plugins call $form->loadFile from onContentPrepareForm trigger, the params will be get default value from xml.
Screen Shot 2022-08-23 at 10 18 41

Testing Instructions

  1. Download Astroid Framework or Helix Framework
  2. Install to your Joomla site.
  3. Posts Options "Show title set to YES by default"
  4. Open or create a post in the backend and set the title display to "do not show" for this individual post, deviating from the standard.
  5. Go to article detail and title disappear.
  6. Open this post in the frontend, edit it and save it.
  7. Now the title is automatically set to "show" again, which I don't think was the case before.
  8. Go to article detail and title "show" again.

Please check my testing video to understand more. https://www.screencast.com/t/TRMAZAxAq

I notice that with Joomla pure. It's no issue. But if extensions use $form->loadFile() function in onContentPrepareForm trigger. It will happen.

I fixed this issue in Astroid with onContentBeforeSave trigger. I re-open this issue again, because I think it will affect to other extensions like Helix framework, etc. But if you feel it is not a Joomla bug. Feel free to close it.

Thank you & Best Regards,
Sonny

avatar sonvnn sonvnn - change - 23 Aug 2022
Status Closed New
Closed_Date 2022-08-22 02:40:02
Closed_By sonvnn
avatar sonvnn sonvnn - reopen - 23 Aug 2022
avatar Hackwar Hackwar - change - 17 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 17 Feb 2023
avatar brianteeman brianteeman - close - 30 Aug 2023
avatar brianteeman
brianteeman - comment - 30 Aug 2023

I am closing this as the bug is in the third part code and not the core.

avatar brianteeman brianteeman - change - 30 Aug 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-08-30 09:03:43
Closed_By brianteeman

Add a Comment

Login with GitHub to post a comment