Skip to content

Commit d945274

Browse files
authored
[6.0] fix: Add script usage for list view in Grid helper's id method (joomla#46104)
This pull request fixes a bug in the Grid.php helper.
1 parent d274d27 commit d945274

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/src/HTML/Helpers/Grid.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ public static function checkall($name = 'checkall-toggle', $action = 'Joomla.che
111111
*/
112112
public static function id($rowNum, $recId, $checkedOut = false, $name = 'cid', $stub = 'cb', $title = '', $formId = null)
113113
{
114+
Factory::getApplication()->getDocument()->getWebAssetManager()->useScript('list-view');
115+
114116
if ($formId !== null) {
115117
return $checkedOut ? '' : '<label for="' . $stub . $rowNum . '"><span class="visually-hidden">' . Text::_('JSELECT')
116118
. ' ' . htmlspecialchars($title, ENT_COMPAT, 'UTF-8') . '</span></label>'

0 commit comments

Comments
 (0)