Feature PR-6.2-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
17 Jul 2026
  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

This adds a new FormField which populates its options from a PHP Enum.

Testing Instructions

Add the following enum in /administrator/components/com_content/src/Enum/StateType.php

<?php 
namespace Joomla\Component\Content\Administrator\Enum;
enum StateType: int
{
    case Published           = 1;
    case Archived              = 2;
}

Add the following in line 275 of /administrator/components/com_content/forms/article.xml

        <field name="teststatus" type="enum" enum="Joomla\Component\Content\Administrator\Enum\StateType"
               prefix="COM_CONTENT_ARTICLES_STATE_OPTION" label="COM_CONTENT_ARTICLES_STATE_OPTION_STATE_TYPE_LABEL"
               default="0">
            <option value="0">COM_CONTENT_ARTICLES_STATE_OPTION_NONE</option>
        </field>

Actual result BEFORE applying this Pull Request

The field doesn't exist.

Expected result AFTER applying this Pull Request

The new field is displayed with 3 entries.

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar Hackwar Hackwar - open - 17 Jul 2026
avatar Hackwar Hackwar - change - 17 Jul 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jul 2026
Category Libraries
avatar Reda-Muhamed Reda-Muhamed - test_item - 19 Jul 2026 - Tested successfully
avatar Reda-Muhamed
Reda-Muhamed - comment - 19 Jul 2026

I have tested this item ✅ successfully on b860c87


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

avatar Reda-Muhamed
Reda-Muhamed - comment - 19 Jul 2026

I have tested this item ✅ successfully on b860c87


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

avatar LadySolveig LadySolveig - test_item - 20 Jul 2026 - Tested successfully
avatar LadySolveig
LadySolveig - comment - 20 Jul 2026

I have tested this item ✅ successfully on b860c87


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

avatar LadySolveig
LadySolveig - comment - 20 Jul 2026

I have tested this item ✅ successfully on b860c87


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

avatar QuyTon QuyTon - change - 20 Jul 2026
Status Pending Ready to Commit
Labels Added: Feature PR-6.2-dev
avatar QuyTon
QuyTon - comment - 20 Jul 2026

RTC


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

avatar QuyTon
QuyTon - comment - 20 Jul 2026

RTC


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

avatar laoneo
laoneo - comment - 23 Jul 2026

I would say, that this needs to be documented, or not?

Add a Comment

Login with GitHub to post a comment