install Joomla 4 with demo data
login to admin as super admin
Go to Users -> Access Levels
Drag the hamburger icon to reorder levels OR click a level name
the level moves
JS error
Uncaught TypeError: t(...).find(...).andSelf is not a function
Labels |
Added:
?
|
Status | New | ⇒ | Confirmed |
Category | ⇒ | JavaScript Templates (admin) |
Labels |
Added:
J4 Issue
|
Does replacing the following lines: https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_users/tmpl/levels/default.php#L28-L32
with this:
use Joomla\CMS\Session\Session;
if ($saveOrder)
{
$saveOrderingUrl = 'index.php?option=com_users&task=levels.saveOrderAjax&tmpl=component' . Session::getFormToken() . '=1';
HTMLHelper::_('draggablelist.draggable');
}
work?
No that gives
TypeError: Cannot read property 'querySelectorAll' of null
OK I have it working - the code from @C-Lodder was almost correct - there was just some extra code needed to be added to the table and tr
However before adding it - what is the usecase for ordering in this way - I can't see it myself and so I would propose removing it
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-08-21 09:09:10 |
Closed_By | ⇒ | brianteeman |
Issue confirmed.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21743.