Elxis CMS Forum

Extensions => Components => Topic started by: seadhna on September 25, 2024, 19:36:52

Title: Component USER - small bug?
Post by: seadhna on September 25, 2024, 19:36:52
Hi there,
just a small bug I think I've found: in Users Central, if a user clicks on 'Edit Profile' and then navigates to the 2nd tab, the dropdown for Country has no label; e.g. above we have the CITY field and the label 'City', and below we have the Telephone field accompanied by the label 'Telephone'.
Title: Re: Component USER - small bug?
Post by: seadhna on September 25, 2024, 20:03:52
I know you don't like CSS solutions datahell :-)
but this works for now in CSS:

label[for=eprcountry]:before {
   content: "Country";
}
Title: Re: Component USER - small bug?
Post by: datahell on September 25, 2024, 21:25:07
Yeap! It is on purpose like that, following the city. I don't know why we did it like that... I think I must add the label.
Thank you very much for reporting it, label added.

Open file components/com_user/views/members.html.php
Go to line 745

Replace this:
$form->addCountry('country', '', $val);

With this:
$form->addCountry('country', $eLang->get('COUNTRY'), $val);

Save the file, done.