? ? Pending

User tests: Successful: Unsuccessful:

avatar YatharthVyas
YatharthVyas
23 Jul 2021

Summary of Changes

'onchange' => "this.form.transition_id.value=this.value;Joomla.listItemTask('" . $checkboxName . $this->escape($row ?? '') . "', 'articles.runTransition')"]

In transition-button layout, The onChange action is hard-coded to work for articles only because of articles.runTransition

This is a library layout and not a component-specific layout hence articles should not be hardcoded here and it should be taken as an option.

Testing Instructions

  1. Enable Workflows (Articles -> Options -> Integrations)
  2. Ensure that transitions work as intended after patch.
  3. Optionally, you can also check that the code of the transition field is same before and after patch:
    image

Expected result AFTER applying this Pull Request

Transitions work as they did before

Documentation Changes Required

Not sure

avatar YatharthVyas YatharthVyas - open - 23 Jul 2021
avatar YatharthVyas YatharthVyas - change - 23 Jul 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Jul 2021
Category Administration com_content Layout
avatar wilsonge
wilsonge - comment - 23 Jul 2021

Can we just inject the entire task rather than just the prefix please. It's going to be easier for other extensions who may not use core MVC

avatar YatharthVyas YatharthVyas - change - 23 Jul 2021
Labels Added: ?
avatar richard67 richard67 - test_item - 23 Jul 2021 - Tested successfully
avatar richard67
richard67 - comment - 23 Jul 2021

I have tested this item successfully on 5a94f2a


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

avatar chmst chmst - test_item - 23 Jul 2021 - Tested successfully
avatar chmst
chmst - comment - 23 Jul 2021

I have tested this item successfully on 5a94f2a


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

avatar chmst chmst - change - 23 Jul 2021
Status Pending Ready to Commit
avatar chmst
chmst - comment - 23 Jul 2021

RTC


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

avatar wilsonge wilsonge - close - 23 Jul 2021
avatar wilsonge wilsonge - merge - 23 Jul 2021
avatar wilsonge wilsonge - change - 23 Jul 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-07-23 21:24:44
Closed_By wilsonge
Labels Added: ?
avatar wilsonge
wilsonge - comment - 23 Jul 2021

Thanks!

avatar YatharthVyas
YatharthVyas - comment - 24 Jul 2021

Thanks all!

Add a Comment

Login with GitHub to post a comment