jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: Florian on 17.01.2024 19:06:22

Title: Real names instead of Usernames - [Fixed in 4.0.40]
Post by: Florian on 17.01.2024 19:06:22
Hi,

another bug: JD 4.0.39, J 4.4.2, PHP 8.2.13 . Configured to show usernames and not real names.

When you edit a Download in frontend and assign it to a user, it will show a dropdown list with real names - no matter whether you configured to use username instead of real names. As I am responsible for breach of data security I had to find a solution

It is in components/com_jdownloads/forms/download.xml where I changed section P7 to show username :

          <!--P7 created by   -->
 
        <field
            name="created_by"
            type="sql"
            label="COM_JDOWNLOADS_CREATED_BY"
            description="COM_JDOWNLOADS_CREATED_BY_DESC"
            query="SELECT id , username FROM #__users ORDER BY username asc"
            multiple="single"
            default="0"
            key_field="id"
            value_field="username">
            <option value="0">COM_JDOWNLOADS_SELECT_A_USER</option>
        </field>

BTW: This is an old bug that I had already reported in JDownloads 3.9
Title: Re: Real names instead of Usernames
Post by: ColinM on 21.01.2024 16:26:27
Hi
I confirm the bug.  Solution given is a permanent selection which is OK if you always need the username. 
Options - Frontend - 'Use real user name' is presently not used but it should be used

The XML needs modifying to select the correct item - but not simple to do!!!

Colin
Title: Re: Real names instead of Usernames
Post by: Arno on 21.01.2024 17:42:35
Hi,
I think the changes above are a good solution for now. So it will be part of the next version.