-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the category first to the ordering when sorting by "ordering" #25295
Conversation
@rogercreagh please test (how to: https://docs.joomla.org/Testing_Joomla!_patches) |
Happy to do so, but it would take me several days or weeks of work to grapple with that as it looks very complex to someone who doesn't use git, has never used Joomla unit tests (or any other type of unit testing) and is a !professional software developer with better things to do than fill my brain up with a load of important stuff that I'll probably never use again. I got in a right twizzle a few months ago when someone suggested I generate a pull request for a different problem and I then found myself lost in a flood of confusion (for a start it seems to me that a pull is actually a push and vice versa). As a result the fix that I had for some bugs in a JHtml string function have never been implemented as the case was closed. I'm reluctant to mess up this fix likewise... On the face of it by inspecting the code it looks like it should work. Pretty much the same as my hack solution which works fine on several sites. PS the bugs in JHtml::_('string.truncate',...) still exist but I have developed a plugin that overrides the duff core function and works fine on my sites so I'm not going to revisit that here - once bitten, twice shy! I wish there was a way of reporting bugs and fixes in Joomla for people who find them and have identified the problems and have a fix that works but are not able to do the whole git core development thing. |
Try with https://docs.joomla.org/Component_Patchtester_for_Testers. That's much simpler and should work for this PR just fine. |
Also, for creating a simple PR like this one (and maybe your truncate one), it may be sufficient to use the GitHub WebUI. See https://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests I agree, Git can be confusing. Especially at the beginning the learning curve is very steep. |
I have tested this item ✅ successfully on a2fcdda This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25295. |
1 similar comment
I have tested this item ✅ successfully on a2fcdda This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25295. |
Status "Ready To Commit". |
thx |
Hi, I experienced a similar issue when transfering an article from one category to another. Depending on the content, it may be likely that this article will have the same ordering number as an article that is already present in the new category, giving unpredicable results. This is especially the case with articles that are newly created; typically these will have number 0. If there are more articles with numer 0 (or even with negative numbers) this gets very confusing. Are situations like this covered by this issue # ? |
Commenting on merged or closed PRs will not get you the attention you need. |
Summary of Changes
In backend when sorting the articles by "Ordering", it will now first order by the category title and only after that it sorts by ordering.
This is consistent with other core components (eg contacts, banners, newsfeeds) and makes drag-and-drop ordering more reliable.
Testing Instructions
Expected result
Items aren't grouped by category.
Items keep in place after reloading.
Actual result
Items of the same category are right beside them.
The items jump around seemingly randomingly
Documentation Changes Required
None