No Code Attached Yet bug
avatar mdobbel
mdobbel
16 Apr 2026

Hi, I updated my Joomla website from 6.04. to 6.1 and suddenly the publishing start date and publishing end date are no longer available during creation of an article on the front-end.

I used two see two tabs, but now I see three tabs and on teh last tab named Publishing, I only see the fields Created by Alias and Metadata (fields Meta Description and Keywords).

In the Article options I have switched on the Publishing options on the Editing layout tab.

How do i get back the publishing start and end date in the front-end during Article creation?

avatar mdobbel mdobbel - open - 16 Apr 2026
avatar mdobbel mdobbel - change - 16 Apr 2026
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 16 Apr 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Apr 2026
avatar brianteeman
brianteeman - comment - 16 Apr 2026

As this is for the frontend it might be that your site template has an override in place. Can you temporarily switch to the cassiopeia template to see if the problem still exists there. That will really help to establish the problem

avatar brianteeman
brianteeman - comment - 16 Apr 2026

Sorry I just rechecked and it is nothing to do with the template

I can confirm that if you try to create a new article (not edit) then those fields are missing

Bug Confirmed NEW article

Image

Edit Article No bug

Image
avatar brianteeman
brianteeman - comment - 16 Apr 2026

The problem comes from #45081

Specifically this line which prevents the fields from being displayed on a new article

<?php if (!is_null($this->item->id)) : ?>

avatar Fedik Fedik - change - 16 Apr 2026
Labels Added: bug
avatar Fedik Fedik - labeled - 16 Apr 2026
avatar Fedik
Fedik - comment - 16 Apr 2026

@chmst can you please have a look?

avatar brianteeman
brianteeman - comment - 16 Apr 2026

I would have written a pr but there must have been a reason for that if block and as I couldnt see what it was I didnt want to step in

avatar Reda-Muhamed
Reda-Muhamed - comment - 16 Apr 2026

I looked into the PR #45081, and it seems the if (!is_null($this->item->id)) check was added to fix layout issues with the start featured and finish featured fields, but the side effect is that it hides the start publishing and finish publishing dates when creating a new article.

quick fix would be to remove that main if block and only apply the check to the featured fields instead.
@chmst, if you think this won't break the workflow layout you originally planned, I will submit a PR for it

avatar mdobbel
mdobbel - comment - 16 Apr 2026

For my sites a made a quick override/fix by commenting out / disable both the if and endif php statements

avatar brianteeman
brianteeman - comment - 16 Apr 2026

For my sites a made a quick override/fix by commenting out / disable both the if and endif php statements

and the endif on line 133

avatar joomdonation
joomdonation - comment - 16 Apr 2026

I would have written a pr but there must have been a reason for that if block and as I couldnt see what it was I didnt want to step in

@brianteeman The right fix would be changed the if (!is_null($this->item->id)) which you pointed out to if ($this->item->params->get('access-change')) . The logic is these fields should only be shown if the logged in user has edit state permission.

avatar brianteeman
brianteeman - comment - 16 Apr 2026

if you dont have that access already how can you even create an article? and why was it only restricted to new articles

avatar joomdonation
joomdonation - comment - 16 Apr 2026

if you dont have that access already how can you even create an article

I'm unsure if I mis-understand your question. Edit State does not control whether you can create article, it only control whether you are allowed to change state related fields (Status, featured, publish up, publish down....)

and why was it only restricted to new articles

It is restricted to both new and existing article.

avatar brianteeman
brianteeman - comment - 16 Apr 2026

you need to look at the code and how it is displayed then. What you are saying makes no sense with the reality

avatar joomdonation
joomdonation - comment - 17 Apr 2026

you need to look at the code and how it is displayed then. What you are saying makes no sense with the reality

I did look at the code. I will try to make PR later today.

avatar jiteshkhatri11
jiteshkhatri11 - comment - 20 Apr 2026

Hi, I would like to work on this issue.

From the discussion, it seems the problem is caused by the condition:
if (!is_null($this->item->id)) which hides publishing fields for new articles.

I am planning to replace it with a permission-based check like:
$this->item->params->get('access-change') so that fields are shown based on user permissions instead of article state.

Please let me know if this approach is correct before I submit a PR.

avatar alikon alikon - change - 21 Apr 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-04-21 10:01:54
Closed_By alikon
avatar alikon alikon - close - 21 Apr 2026
avatar alikon
alikon - comment - 21 Apr 2026

please test #47640

Add a Comment

Login with GitHub to post a comment