NPM Resource Changed ? Documentation Required Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
15 Jun 2021

Pull Request for Issue #34498.

Summary of Changes

My attempt to fix #34498. Currently, we only submit data between drag and drop element to server for updating ordering. Now, I modified it so that data from all rows (within same group if there is group) will be submitted in ajax request (basically, same with J3).

Testing Instructions

  1. See https://github.com/joomla/joomla-cms/issues/34498to understand the issue.
  2. Download update package for this PR at https://ci.joomla.org/artifacts/joomla/joomla-cms/4.0-dev/34520/downloads/45195/Joomla_4.0.0-rc2-dev+pr.34520-Development-Update_Package.zip , go to System -> Update -> Joomla, upload this package and run the update.
  3. Try to re-order menu items, (both parent and children categories), articles, modules and make sure ordering of these items are saved when you re-fresh the page.
avatar joomdonation joomdonation - open - 15 Jun 2021
avatar joomdonation joomdonation - change - 15 Jun 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Jun 2021
Category JavaScript Repository NPM Change
2de34c5 15 Jun 2021 avatar joomdonation CS
avatar joomdonation joomdonation - change - 15 Jun 2021
Labels Added: NPM Resource Changed ?
avatar joomdonation joomdonation - change - 15 Jun 2021
The description was changed
avatar joomdonation joomdonation - edited - 15 Jun 2021
avatar joomdonation
joomdonation - comment - 15 Jun 2021

@Magnytu2 @brianteeman Could you please check to see if this PR solves the issue you are having?

avatar Magnytu2
Magnytu2 - comment - 15 Jun 2021

As my site is online, I wanted to do so by using the update link. But I got an error message.
Erreur-Mise-à-jour-de-Joomla!---Joomla-4-Fr---Administration---joomla-4 fr

avatar joomdonation
joomdonation - comment - 15 Jun 2021

@Magnytu2 There could be several reasons causing the error like the path to tmp folder is not correct, out of diskspace or permission error...

Could you please try to download the update package for this PR, then go to System -> Update -> Joomla, upload and update the package manually?

avatar richard67
richard67 - comment - 15 Jun 2021

@Magnytu2 Maybe you used the URL from just before the code style fix? In this case just go again to the downloads and use the new one. The download packages and URL are rebuilt after each change on a PR.

avatar Magnytu2
Magnytu2 - comment - 15 Jun 2021

@richard67 No it does not want to do it.

@joomdonation The package is too big for me to do it this way. I will do it by Filezilla

avatar joomdonation
joomdonation - comment - 15 Jun 2021

@Magnytu2 If you upload files manually using Filezilla, you can just get this zip file (it contains several js files modified by this PR), unzip it and upload these files to media/system/js to replace the old files. It should be faster than upload the whole package
drag.zip

avatar Magnytu2
Magnytu2 - comment - 15 Jun 2021

Awesome it works. A big thank-you. As I am working on many screenshots, is it possible to rename the version name of Joomla?
Correction-Menus-_-Liens-du-menu-'Main-Menu'---Joomla-4-Fr---Administration---joomla-4 fr

avatar joomdonation
joomdonation - comment - 15 Jun 2021

@Magnytu2 You can modify this line of code https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/modules/mod_version/tmpl/default.php#L19

Change it to something like:

<span aria-hidden="true"><?php echo 'Joomla 4'; ?></span>

Replace Joomla 4 with the text you want to display.

avatar joomdonation
joomdonation - comment - 15 Jun 2021

Could you please mark your test result in issue tracker?

avatar Magnytu2 Magnytu2 - test_item - 15 Jun 2021 - Tested successfully
avatar Magnytu2
Magnytu2 - comment - 15 Jun 2021

I have tested this item successfully on 2de34c5


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

avatar Magnytu2
Magnytu2 - comment - 15 Jun 2021

@Magnytu2 You can modify this line of code https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/modules/mod_version/tmpl/default.php#L19

Change it to something like:

<span aria-hidden="true"><?php echo 'Joomla 4'; ?></span>

Replace Joomla 4 with the text you want to display.

It does not work. Do you have another suggestion please?

avatar joomdonation
joomdonation - comment - 15 Jun 2021

@Magnytu2 No clue why it is not working for you. I made the quick modification and you can see the result in the screenshot
version

avatar jwaisner jwaisner - test_item - 22 Jun 2021 - Tested successfully
avatar jwaisner
jwaisner - comment - 22 Jun 2021

I have tested this item successfully on 2de34c5


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

avatar jwaisner jwaisner - change - 22 Jun 2021
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 22 Jun 2021

RTC


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

avatar wilsonge wilsonge - change - 27 Jun 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-06-27 10:21:52
Closed_By wilsonge
Labels Added: Documentation Required
avatar wilsonge wilsonge - close - 27 Jun 2021
avatar wilsonge wilsonge - merge - 27 Jun 2021
avatar wilsonge
wilsonge - comment - 27 Jun 2021

Thanks!

Add a Comment

Login with GitHub to post a comment