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.
Always
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-02-23 20:08:06 |
Closed_By | ⇒ | Quy |
Closed_By | Quy | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/23960
Please test PR #23996
Thx for this find, please test the PR...