? ? Pending

User tests: Successful: Unsuccessful:

avatar AndySDH
AndySDH
21 Nov 2018

Summary of Changes

Currently in Joomla, if a Field Group is empty (there are no values attached to any of the fields included in the field group) the surrounding <dl> tag is still output. Causing unwanted empty spaces.

There already is a check for individual fields not containing values, but there is no check if ALL the fields don't contain values at all.

This fixes the issue.

Testing Instructions

  • Create a Field Group
  • Assign a Field to this Field Group, and assign it to a Category
  • Visit an article included in the assigned Category (without giving a value to the field)
  • See that an empty <dl class="fields-container"></dl> is output.
  • Apply Patch
  • See that the empty <dl class="fields-container"></dl> is not output anymore.

Expected result

  • There should be no ouput when the group is empty.

Actual result

  • Surrounding HTML is output even when there is nothing to display.

Documentation Changes Required

None

avatar AndySDH AndySDH - open - 21 Nov 2018
avatar AndySDH AndySDH - change - 21 Nov 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Nov 2018
Category Front End com_fields
avatar AndySDH AndySDH - change - 21 Nov 2018
The description was changed
avatar AndySDH AndySDH - edited - 21 Nov 2018
avatar AndySDH AndySDH - change - 21 Nov 2018
The description was changed
avatar AndySDH AndySDH - edited - 21 Nov 2018
avatar AndySDH AndySDH - change - 21 Nov 2018
The description was changed
avatar AndySDH AndySDH - edited - 21 Nov 2018
avatar AndySDH AndySDH - change - 21 Nov 2018
The description was changed
avatar AndySDH AndySDH - edited - 21 Nov 2018
avatar AndySDH AndySDH - change - 21 Nov 2018
The description was changed
avatar AndySDH AndySDH - edited - 21 Nov 2018
avatar AndySDH AndySDH - change - 21 Nov 2018
Labels Added: ?
avatar AndySDH
AndySDH - comment - 22 Nov 2018

@Quy & @SharkyKZ can you test?
Thanks for your contributions!

avatar Quy
Quy - comment - 22 Nov 2018

I have tested this item successfully on c0310e8


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

avatar Quy Quy - test_item - 22 Nov 2018 - Tested successfully
avatar cheesegrits
cheesegrits - comment - 12 Dec 2018

I have tested this item successfully on c0310e8

Tested successfully


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

avatar cheesegrits cheesegrits - test_item - 12 Dec 2018 - Tested successfully
avatar AndySDH
AndySDH - comment - 12 Dec 2018

Can this be merged after the successful tests?

avatar Quy Quy - change - 12 Dec 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 12 Dec 2018

RTC


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

avatar mbabker mbabker - change - 18 Dec 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-12-18 02:43:31
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 18 Dec 2018
avatar mbabker mbabker - merge - 18 Dec 2018

Add a Comment

Login with GitHub to post a comment