? ? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
14 Aug 2021

Pull Request for Issue # .

Summary of Changes

The layout layouts/joomla/content/icons/edit_lock.php is used to display lock icon (when the item is being checked out by different user and could not be edited by the current logged in user)

For some reasons, in the code, we hardcode it to article and contact only, thus prevent other extensions (found this when checking weblinks layout) from using it.

This PR extends the code abit to make layout reusable by other extensions (weblinks in the case) by passing ariaDescribed to display data and use it if provided. That removes the limit for article and contact only.

Testing Instructions

Code review only.

Hope it is accepted so that we can re-use this layout in com_weblinks instead of having to implement it.

avatar joomdonation joomdonation - open - 14 Aug 2021
avatar joomdonation joomdonation - change - 14 Aug 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Aug 2021
Category Layout
avatar brianteeman
brianteeman - comment - 14 Aug 2021

There is also the function checkedout which is used in com_menus and probably elsewhere

avatar brianteeman
brianteeman - comment - 14 Aug 2021

Yes because the function is used in the other places

avatar joomdonation
joomdonation - comment - 14 Aug 2021

@brianteeman Sorry, I don't look much at the layout, so your comment is not clear to me. From what you see, is it safe to make this change or not?

avatar brianteeman
brianteeman - comment - 14 Aug 2021

The question is not can you make the change to the layout and more do you need to?

All other components are using the function eg

<?php echo HTMLHelper::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, 'banners.', $canCheckin); ?>

avatar joomdonation
joomdonation - comment - 14 Aug 2021

Ah, no. This is used for edit icon in the frontend such as https://github.com/joomla/joomla-cms/blob/4.0-dev/components/com_contact/tmpl/category/default_items.php#L179. It is not the same with backend.

avatar brianteeman
brianteeman - comment - 14 Aug 2021

ah, i see my confusion and mistake

avatar richard67 richard67 - test_item - 14 Aug 2021 - Tested successfully
avatar richard67
richard67 - comment - 14 Aug 2021

I have tested this item successfully on eb4e93a

LGTM


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

avatar Quy Quy - test_item - 10 Dec 2021 - Tested successfully
avatar Quy
Quy - comment - 10 Dec 2021

I have tested this item successfully on eb4e93a


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

avatar Quy Quy - change - 10 Dec 2021
Status Pending Ready to Commit
Labels Added: ?
avatar Quy
Quy - comment - 10 Dec 2021

RTC


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

avatar wilsonge wilsonge - change - 4 Jan 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-01-04 00:41:49
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 4 Jan 2022
avatar wilsonge wilsonge - merge - 4 Jan 2022
avatar wilsonge
wilsonge - comment - 4 Jan 2022

Thanks!

Add a Comment

Login with GitHub to post a comment