No Code Attached Yet bug
avatar SafetNS
SafetNS
22 Feb 2021

Steps to reproduce the issue

  1. Create a Category:
    1.1. Navigate to Content > Categories > New
    1.2. Set the category title and then click 'Save & Close'. No other field entry is required.

  2. Create a new custom field: Navigate to Content > Fields.
    2.1. Navigate to Content > Fields
    2.2. Select filter dropdown at the top of the page (which defaults as Articles) and select Cateogry.
    2.3. Click (+)New to create a new field.
    2.4. Set the title, remove 'All' from the Category field, and add the newly created category. The field type will default to text. Save & Close.

  3. Navigate back to the newly created category (Content > Categories) and select it for editing.
    3.1. You will notice the new 'Fields' tab appear with your new field. Enter some data into the new field and Save.
    3.2. Now change the publication 'Status' to 'Unpublished' and then save.
    3.3. Notice the bug: the 'Fields' tab has disappeared. It will return if you change the status to 'Published' and click 'Save' again. The data however, will now have been cleared.

Expected result

At stage 3.3 the 'Fields' tab and the custom field should remain after saving the status as 'unpublished'. One can reproduce a desirable outcome only if they leave the 'All' option in the Category field on stage 2. In other words, changing the category to a specific category will create this undesired outcome.

Actual result

At stage 3.3, the custom 'Fields' tab should remain, along with its data, regardless of the 'Published/Unpublished' Status.

System information (as much as possible)

Joomla! 3.9.21
PHP 7.3.23

Additional comments

avatar SafetNS SafetNS - open - 22 Feb 2021
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Feb 2021
avatar SafetNS SafetNS - change - 22 Feb 2021
Title
Custom Category Fields Losing Data If Unpublished and Not Displaying Fields Unless Published
Custom Category Fields Losing Data If Unpublished, and Not Displaying Fields Unless Published
avatar SafetNS SafetNS - edited - 22 Feb 2021
avatar SafetNS SafetNS - change - 22 Feb 2021
Title
Custom Category Fields Losing Data If Unpublished, and Not Displaying Fields Unless Published
Custom Category Fields Losing Data If Unpublished - Not Displaying Fields Unless Published
avatar SafetNS SafetNS - edited - 22 Feb 2021
avatar SafetNS SafetNS - change - 22 Feb 2021
The description was changed
avatar SafetNS SafetNS - edited - 22 Feb 2021
avatar chmst
chmst - comment - 12 Mar 2021

@SafetNS I tried to reproduce this issue. Strange enough .. I followed your description several times and always the field was correct - but suddenly I had the issue you described here.
But could not replicate it again. Can you remember anything what could be the context?

avatar ChristineWk
ChristineWk - comment - 13 Mar 2021

Tried also several times and can't reproduce point: 3.3
Still shown under: Fields > Category > Status: x (set to unpublished) > type text >

screen shot 2021-03-13 at 11 05 24


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

avatar ChristineWk
ChristineWk - comment - 13 Mar 2021

OK, tried again, because I forgot 1 step.

screen shot 2021-03-13 at 19 30 07

Category One: Set to unpublished > Field one not shown:
screen shot 2021-03-13 at 19 32 09

Category Two: Set to published > Field two is shown
screen shot 2021-03-13 at 19 32 47


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

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: No Code Attached Yet bug
Removed: ?
avatar Hackwar Hackwar - labeled - 22 Feb 2023
avatar joomdonation joomdonation - close - 23 Feb 2023
avatar joomdonation
joomdonation - comment - 23 Feb 2023

I'm closing this issue because Joomla 3 is now in maintenance mode and will only receive security fixes, not bugs fixes. This is the same with other issue reported for Joomla 4 #31869. If that is valid, we will fix it for Joomla 4.

avatar joomdonation joomdonation - change - 23 Feb 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-02-23 15:49:58
Closed_By joomdonation

Add a Comment

Login with GitHub to post a comment