User tests: Successful: Unsuccessful:
PR for issue #11103
The PLT decided to revert #8576 because it is a B/C break
The new Article should be listed first in the frontend category view
Category | ⇒ | Administration Components |
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
I have tested this item
also testet with Isis and Hathor Administrator-Template and Sticky-Ordering(negative Ordering Numbers).
Status | Pending | ⇒ | Ready to Commit |
RTC. Thanks
I have tested this item
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-08-13 17:40:39 |
Closed_By | ⇒ | wilsonge |
Labels |
Removed:
?
|
I have tested successfully.
Tested successfully;
For the sake of performance I'd suggest shifting the ordering field instead of reordering:
UPDATE #__content SET ordering = ordering + 1 [WHERE catid = N]
Basically, the same outcome in one query instead of many.
That can be an enhancement, have thought of it, but after executing
UPDATE #__content SET ordering = ordering + 1 [WHERE catid = N]
you still need to check for unique ordering, as existing orderings (for the given category) are not guaranteed to be unique
Well, here's the proper renumbering then:
UPDATE #__content AS c,
(SELECT @rownum := @rownum + 1 AS rownum, p.id
FROM #__content AS p, (SELECT @rownum := 0) AS r
[WHERE p.catid = N]
ORDER BY p.ordering ASC) AS g
SET c.ordering = g.rownum
WHERE c.id = g.id
Similar has been proposed already, it does not work on ALL DBs, (only MySQL ?)
and there was an argument not to use DB specific code
Whatever, I'm implementing this for myself.
As long as Joomla claims to support multiple database engines, accepting patches which penalize users of a certain platform with slower performance should not be acceptable. That's why I argue against switch conditionals for different queries based on the engine. Some exceptions apply, and those are pretty much all already in the code base (like the driver specific subclasses for the Smart Search indexer).
Tested this fix with latest official release 3.6.2 and the order of newly created articles is correct again.
Don't see any perfomanc issues for myself.
Tested with 3.6.2 and work's fine.
i hope, this change will come in short time. it is very strange with our clients for this problem!
This has already been merged and as you know we have the 3.6.3 release candidate out now. So this will come out next Tuesday
thank you - yes, i have see the message from flow... happy!
I have tested this item✅ successfully on ca43296
despite the loss of perfomance ;)
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11581.