Fieldset label text is displayed twice while completing pwd

Did you find a bug in Joomla! 3.x but aren't sure? This forum is the place to help figure out if the problem is a bug and how to report it. If you are an experienced Joomla! user and are certain that you have found a bug please use the Bug Tracker to submit your issue.
This forum is for discussion about bugs and to get help with reporting them to the Bug Tracker: https://issues.joomla.org

Moderator: ooffick

Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Locked
globi
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Jan 10, 2013 9:24 am

Fieldset label text is displayed twice while completing pwd

Post by globi » Wed Oct 22, 2014 12:48 pm

When completing the password reset procedure the fieldset label text 'COM_USERS_RESET_COMPLETE_LABEL' is displayed twice. Joomla 3.3.6

/index.php/component/users/?view=reset&layout=complete

I reckon it happens in the file:
\components\com_users\views\reset\tmpl\complete.php

Code: Select all

Line 24:	
	<form action="<?php echo JRoute::_('index.php?option=com_users&task=reset.complete'); ?>" method="post" class="form-validate form-horizontal well">
		<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
			<fieldset>
				<?php foreach ($this->form->getFieldset($fieldset->name) as $name => $field) : ?>
					<p><?php echo JText::_($fieldset->label); ?></p>
					<div class="control-group">


where ...echo JText::_($fieldset->label)... is called for each field and not just for each fieldset.

I suppose the fix would be to swap the two lines:

Code: Select all

Line 24+	
	<form action="<?php echo JRoute::_('index.php?option=com_users&task=reset.complete'); ?>" method="post" class="form-validate form-horizontal well">
		<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
			<fieldset>
				<p><?php echo JText::_($fieldset->label); ?></p>
				<?php foreach ($this->form->getFieldset($fieldset->name) as $name => $field) : ?>
					<div class="control-group">

Locked

Return to “Joomla! 3.x Bug Reporting”