? ? ? ? Failure

User tests: Successful: Unsuccessful:

avatar AndySDH
AndySDH
30 May 2019

Pull Request for Issue #24754

Summary of Changes

PR #24397, introduced in Joomla 3.9.5, added a check to display the custom field on the frontend based on a parameter that was meant to be a check for the edit form, and not for the frontend display.

The author of that PR said that to un-do it I should create another PR myself so here it is.

As explained in this comment #24754 (comment), there already is another setting that controls whether a custom field should be displayed in the frontend or not.

That "Show on" setting is under "Form Options", and was/has always been for controlling where the field can be edited, not displayed. It just had a bad label/description.

With this PR I also take care of improving the description and label of that setting so that it causes no confusion on what it's actually doing and supposed to do.

Testing Instructions

  • Create a Custom Field
  • Set the "Editable In" (or without this PR: "Show on") parameter to "Administrator"
  • Assign a value to it in an article

Current 3.9.6 result

  • The field is not displayed on the frontend article either

Expected result with this PR

  • The field should be displayed on the frontend article, but not on the frontend editing form.

Documentation Changes Required

Yes.
The label and description of the setting should be changed accordingly also here:
https://docs.joomla.org/J3.x:Adding_custom_fields/Parameters_for_all_Custom_Fields

avatar AndySDH AndySDH - open - 30 May 2019
avatar AndySDH AndySDH - change - 30 May 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 May 2019
Category Administration com_fields Language & Strings
avatar AndySDH AndySDH - change - 30 May 2019
The description was changed
avatar AndySDH AndySDH - edited - 30 May 2019
avatar AndySDH AndySDH - change - 30 May 2019
The description was changed
avatar AndySDH AndySDH - edited - 30 May 2019
avatar AndySDH AndySDH - change - 30 May 2019
The description was changed
avatar AndySDH AndySDH - edited - 30 May 2019
avatar AndySDH AndySDH - change - 30 May 2019
The description was changed
avatar AndySDH AndySDH - edited - 30 May 2019
avatar AndySDH AndySDH - change - 30 May 2019
The description was changed
avatar AndySDH AndySDH - edited - 30 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 30 May 2019
Title
[3.9.7] Fixing a mistake made with PR #24397 + fixing setting description for clarity
Fixing a mistake made with PR #24397 + fixing setting description for clarity
avatar franz-wohlkoenig franz-wohlkoenig - edited - 30 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 30 May 2019
Title
[3.9.7] Fixing a mistake made with PR #24397 + fixing setting description for clarity
Fixing a mistake made with PR #24397 + fixing setting description for clarity
avatar richard67
richard67 - comment - 30 May 2019

@joomlahenk Please test

avatar richard67
richard67 - comment - 30 May 2019

I have tested this item successfully on 7e7571c

I've tested it with an extended test compared to the testing instructions in the description:

  • Created 2 fields, one with "Can be edited in" (or "Showon" without this PR) set to "Administrator" and the other set to "Site".
  • Checked that when editing the article with both fields having assigned a value, the 1st field is editable in tab "Fields" in the artricle edit view in the backend and the 2nd field is not, and for frontend editing it is vice versa.
    This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25062.
avatar richard67 richard67 - test_item - 30 May 2019 - Tested successfully
avatar alikon alikon - change - 30 May 2019
Labels Added: ?
avatar AndySDH AndySDH - change - 30 May 2019
The description was changed
avatar AndySDH AndySDH - edited - 30 May 2019
avatar richard67
richard67 - comment - 30 May 2019

I have tested this item successfully on a4947b4

I've tested it with an extended test compared to the testing instructions in the description:

  • Created 2 fields, one with "Can be edited in" (or "Showon" without this PR) set to "Administrator" and the other set to "Site".
  • Checked that when editing the article with both fields having assigned a value, the 1st field is editable in tab "Fields" in the artricle edit view in the backend and the 2nd field is not, and for frontend editing it is vice versa.
    This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25062.
avatar richard67
richard67 - comment - 30 May 2019

I have tested this item successfully on a4947b4

I've tested it with an extended test compared to the testing instructions in the description:

  • Created 2 fields, one with "Can be edited in" (or "Showon" without this PR) set to "Administrator" and the other set to "Site".
  • Checked that when editing the article with both fields having assigned a value, the 1st field is editable in tab "Fields" in the artricle edit view in the backend and the 2nd field is not, and for frontend editing it is vice versa.
    This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25062.
avatar AndySDH AndySDH - change - 30 May 2019
The description was changed
avatar AndySDH AndySDH - edited - 30 May 2019
avatar richard67 richard67 - test_item - 30 May 2019 - Tested successfully
avatar joomla-cms-bot joomla-cms-bot - edited - 30 May 2019
avatar richard67 richard67 - change - 30 May 2019
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 30 May 2019
avatar Quy
Quy - comment - 30 May 2019

I have tested this item successfully on a4947b4


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

avatar Quy
Quy - comment - 30 May 2019

I have tested this item successfully on a4947b4


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

avatar Quy Quy - test_item - 30 May 2019 - Tested successfully
avatar Quy Quy - change - 30 May 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 30 May 2019

RTC


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

avatar Quy
Quy - comment - 30 May 2019

RTC


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

avatar AndySDH
AndySDH - comment - 30 May 2019

By the way, I noticed that the documentation here https://docs.joomla.org/J3.x:Adding_custom_fields/Parameters_for_all_Custom_Fields is outdated beyond this PR.
Joomla 3.9 changed the way Custom Field options are arranged and it was not reflected in the documentation there

avatar AndySDH AndySDH - change - 30 May 2019
Labels Added: ?
avatar AndySDH AndySDH - change - 30 May 2019
Labels Added: ? ?
avatar Quy
Quy - comment - 30 May 2019

I have tested this item successfully on 6e5a160


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

avatar Quy Quy - test_item - 30 May 2019 - Tested successfully
avatar HLeithner
HLeithner - comment - 30 May 2019

@brianteeman would you like to check the language strings before I merge this PR?

avatar HLeithner HLeithner - change - 5 Jun 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-06-05 15:37:39
Closed_By HLeithner
avatar HLeithner HLeithner - close - 5 Jun 2019
avatar HLeithner HLeithner - merge - 5 Jun 2019
avatar HLeithner
HLeithner - comment - 5 Jun 2019

thx

Add a Comment

Login with GitHub to post a comment