? bug PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
13 May 2023

Pull Request for Issue #40568 .

Summary of Changes

Testing Instructions

Go to the TinyMCE plugin and add a Language of Parts item but leave the fields blank.
Save and go to edit an article.

Also test after the PR that you can still add a language of parts without error

Actual result BEFORE applying this Pull Request

Error page:
array_merge(): Argument #1 must be of type array, null given
JROOT/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php:393

Expected result AFTER applying this Pull Request

No error

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 13 May 2023
Category Front End Plugins
avatar brianteeman brianteeman - open - 13 May 2023
avatar brianteeman brianteeman - change - 13 May 2023
Status New Pending
avatar brianteeman brianteeman - change - 13 May 2023
The description was changed
avatar brianteeman brianteeman - edited - 13 May 2023
avatar ceford
ceford - comment - 13 May 2023

Testing on 4.3.1 - patch works fine. So I should pass this. But...

Testing this on 4.2.10-dev with the patch applied, I get
call to a member function getIdentity() on null
1 () JROOT/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php:71
2 PlgEditorTinymce->onDisplay() JROOT/libraries/src/Editor/Editor.php:194
I applied the patch, added the empty Language of Parts, then went to Article edit. New error appears.
Reverted LofP and Patch - back to normal.

That maybe irrelevant but I though it best to mention it before reporting a pass.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40581.
avatar ceford ceford - test_item - 13 May 2023 - Tested successfully
avatar ceford
ceford - comment - 13 May 2023

I have tested this item successfully on b5b487b

Decided my previous comment was stupid. Patch works fine on 4.3.1.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40581.

avatar richard67 richard67 - test_item - 14 May 2023 - Tested successfully
avatar richard67
richard67 - comment - 14 May 2023

I have tested this item successfully on b5b487b

Works as described.

However, isn't it an issue that the plugin settings form allows to save an empty language of parts? Could that be fixed with another PR?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40581.

avatar richard67 richard67 - change - 14 May 2023
Status Pending Ready to Commit
Labels Added: bug PR-4.3-dev
avatar richard67
richard67 - comment - 14 May 2023

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40581.

avatar brianteeman
brianteeman - comment - 14 May 2023

However, isn't it an issue that the plugin settings form allows to save an empty language of parts? Could that be fixed with another PR?

I think that is a generic issue with the repeatable field

avatar brianteeman brianteeman - change - 14 May 2023
Labels Added: ?
avatar obuisard
obuisard - comment - 14 May 2023

Thank you Brian @brianteeman for the PR!

avatar obuisard obuisard - change - 14 May 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-05-14 18:31:55
Closed_By obuisard
avatar obuisard obuisard - close - 14 May 2023
avatar obuisard obuisard - merge - 14 May 2023
avatar brianteeman
brianteeman - comment - 14 May 2023

thanks

Add a Comment

Login with GitHub to post a comment