?
avatar Quy
Quy
19 Apr 2017

Steps to reproduce the issue

Edit an article.
View page source.
Search for class="".

Expected result

No empty class output.

Actual result

<div class="control-group">
			<div class="control-label"><label id="jform_modified_by-lbl" for="jform_modified_by" class="">
	Modified By</label>
</div>

Additional comments

Custom fields are affected by this too.

I attempted to fix this in \joomla-cms-staging\layouts\joomla\form\renderfield.php, however, I am unable to find out where $label is generated.

<div class="control-group<?php echo $class; ?>"<?php echo $rel; ?>>
	<?php if (empty($options['hiddenLabel'])) : ?>
		<div class="control-label"><?php echo $label; ?></div>
	<?php endif; ?>
	<div class="controls"><?php echo $input; ?></div>
</div>
avatar Quy Quy - open - 19 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 19 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Apr 2017
avatar brianteeman
brianteeman - comment - 19 Apr 2017

how about renderlabel.php ?

avatar Quy
Quy - comment - 19 Apr 2017

Close per PR #15416

avatar Quy Quy - change - 19 Apr 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-04-19 16:44:26
Closed_By Quy
avatar Quy Quy - close - 19 Apr 2017

Add a Comment

Login with GitHub to post a comment