Skip to content

Fix order of items not always saved#38935

Merged
HLeithner merged 1 commit intojoomla:4.2-devfrom
Fedik:fix-sorting38910
Oct 15, 2022
Merged

Fix order of items not always saved#38935
HLeithner merged 1 commit intojoomla:4.2-devfrom
Fedik:fix-sorting38910

Conversation

@Fedik
Copy link
Member

@Fedik Fedik commented Oct 11, 2022

Pull Request for Issue #38910 .

Summary of Changes

Use input.value = x, instead of input.setAttribute('value', x)

Testing Instructions

Apply patch, run npm install.

And follow #38910 , or:

Open sample data menus list for Top menu.
Drag "Fruit Shop" to:
3-d position, check frontend - position should change,
then drag to 5-th position, check fronted - position stays 3-rd
Important: do not reload the menu list page.

Actual result BEFORE applying this Pull Request

Order randomly saved wrongly

Expected result AFTER applying this Pull Request

Order always saved

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

@joomla-cms-bot joomla-cms-bot added NPM Resource Changed This Pull Request can't be tested by Patchtester PR-4.2-dev labels Oct 11, 2022
@wwwiiimmm
Copy link

I have tested this item ✅ successfully on b460ee4

I used the Custom URL in Joomla Updater to install this PR.
After that I dragged menu items and featured articles to different possitions.

From what I can see this fixes the order issue.

Thank you.


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

@richard67
Copy link
Member

I have tested this item ✅ successfully on b460ee4

I could reliably reproduce the issue. It always failed for me when I dragged an item to the very last position of the menu items list. I can confirm the patch solves this.


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

@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Oct 12, 2022
@HLeithner HLeithner merged commit 98eca9e into joomla:4.2-dev Oct 15, 2022
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Oct 15, 2022
@HLeithner
Copy link
Member

@HLeithner HLeithner added this to the Joomla! 4.2.4 milestone Oct 15, 2022
@Fedik Fedik deleted the fix-sorting38910 branch October 15, 2022 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NPM Resource Changed This Pull Request can't be tested by Patchtester

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants