?
avatar rolandalsace
rolandalsace
20 Feb 2019

In com_content edit form, the select transition list have no option (only the actual state of the current item.

The problem is here :

In /components/com_content/froms/articles.xml the field "transition" have this description :

	<field
		name="transition"
		type="transition"
		component="com_content"
		addfieldprefix="Joomla\Component\Workflow\Administrator\Field"
		label="COM_CONTENT_STATE"
	>

But the "transition" field (in /librairies/src/Form/Field/TransitionField.php) use $element['extension'] in line 73.

So it would have to change component="com_content" to extension="com_content" in com_content articles.xml transition field.

<field
		name="transition"
		type="transition"
		extension="com_content"
		addfieldprefix="Joomla\Component\Workflow\Administrator\Field"
		label="COM_CONTENT_STATE"
	>

So the select transition options list is well generated.

Regards.

Steps to reproduce the issue

Always

Expected result

Actual result

System information (as much as possible)

Additional comments

avatar rolandalsace rolandalsace - open - 20 Feb 2019
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Feb 2019
avatar rolandalsace rolandalsace - change - 20 Feb 2019
The description was changed
avatar rolandalsace rolandalsace - edited - 20 Feb 2019
avatar bembelimen
bembelimen - comment - 23 Feb 2019

Thx for this find, please test the PR...

avatar Quy Quy - change - 23 Feb 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-02-23 20:08:06
Closed_By Quy
avatar joomla-cms-bot joomla-cms-bot - change - 23 Feb 2019
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 23 Feb 2019
avatar joomla-cms-bot
joomla-cms-bot - comment - 23 Feb 2019

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/23960

avatar Quy
Quy - comment - 23 Feb 2019

Please test PR #23996


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

Add a Comment

Login with GitHub to post a comment