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.
@Quy & @SharkyKZ can you test?
Thanks for your contributions!