jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: Dode on 16.03.2015 15:06:42

Title: Can't rename files via frontend editing ? - [Fixed in 3.2.32!!!]
Post by: Dode on 16.03.2015 15:06:42
Hello again,

It seems i'm not able to rename a Download filename or Preview filename via the frontend editing feature. The little "rename" icon has just no effect when clicked.
No problem in the backend though.

[gelöscht durch Administrator]
Title: Re: Can't rename files via frontend editing ?
Post by: ColinM on 16.03.2015 19:59:54
Hi Dode
I cannot reproduce this problem. Just tried renaming main file - that was ok. I did not have aany preview files in the Download.  Could you perhaps give a little more detail on the setup please.
Colin
Title: Re: Can't rename files via frontend editing ?
Post by: Dode on 17.03.2015 20:32:03
Joomla 3.3.6
JD 3.2.28
Apache 2.4.7 / PHP 5.5.9

Group settings are customized to display custom fields, no editor.
I'm using a Joomlart template (JA Purity II) that i customized.

Let me know what informations you could need ? Thanks.
Title: Re: Can't rename files via frontend editing ?
Post by: Arno on 23.03.2015 23:22:18
QuoteThe little "rename" icon has just no effect when clicked.
But you know that the only effect ist that the file field will be writable?
Title: Re: Can't rename files via frontend editing ?
Post by: Dode on 24.03.2015 22:07:57
Of course ;-) .
Maybe it's related to my template (JoomlArt) or to my web browser (Firefox latest), i'll investigate further by tomorrow (it seems i'm alone to have this issue here).
Same renaming action works fine in the backend.
Title: Re: Can't rename files via frontend editing ?
Post by: ColinM on 25.03.2015 01:27:53
Dode,
I use the latest Firefox. No problem with front end rename.  Have you ever used the Firefox Inspector?  That might help diagnose
Colin
Title: Re: Can't rename files via frontend editing ?
Post by: Dode on 25.03.2015 18:25:21
When i click the rename icon in frontend editing, i get in the Inspector console :
ReferenceError: editFilename is not defined
???

Also tried with the Protostar template, no change, i can't rename via frontend editing with a super user.
Title: Re: Can't rename files via frontend editing ?
Post by: ColinM on 26.03.2015 12:42:00
Hi
Could you perhaps PM the site details please.  It looks very strange. I will be able to compare the code generated by <site>/components/com_jdownloads/views/form/tmpl/edit.php between the two sites.  Relevant code is circa line 360
Colin
Title: Re: Can't rename files via frontend editing ?
Post by: Dode on 06.04.2015 13:04:33
Hello Colin,
Did you manage do do some testings with the infos i sent you last week ?
Tried again with the latest beta, and same problem.
Thanks.
Title: Re: Can't rename files via frontend editing ?
Post by: ColinM on 06.04.2015 18:55:41
Dode
Thanks for reminder! We were in the French Alps at Avoriaz last week so....
Will look now.
Colin
Title: Re: Can't rename files via frontend editing ?
Post by: ColinM on 06.04.2015 19:47:54
Dode
Visited front end and logged in.  I had no trouble editing file name from front end - see pics "rename0x.png".  Also downloaded OK. Pic rename06.png shows directory with downloads.  Some are php files but that looked as not allowed!! But could still rename.  Using Firefox see rename07.png

Colin

[gelöscht durch Administrator]
Title: Re: Can't rename files via frontend editing ?
Post by: Dode on 06.04.2015 21:40:06
I FOUND THE PROBLEM !!! It is related to the frontend language !
If i switch the frontend language from french to english for a user that has the proper privileges/group, it's working perfectly. If i switch to french, i can't rename !
Now, i don't know what should be fixed in the fr language file to correct this.
Title: Re: Can't rename files via frontend editing ?
Post by: ColinM on 06.04.2015 23:49:48
Excellent! :D ;D :D  Must be somewhere that jDownloads checks the text rather than the text name!  Now to find it!!
Colin
Title: Re: Can't rename files via frontend editing ?
Post by: Dode on 07.04.2015 00:00:15
Probably related to the error i reported above:
ReferenceError: editFilename is not defined
No ?
Title: Re: Can't rename files via frontend editing ?
Post by: Dode on 18.04.2015 15:46:57
Arno, did you see this topic ? Any idea on how to fix this language bug ?
Title: Re: Can't rename files via frontend editing ?
Post by: Arno on 19.04.2015 14:15:51
Quote from: Dode on 18.04.2015 15:46:57
Arno, did you see this topic ? Any idea on how to fix this language bug ?
Hi Dode.
i'm back from holiday so i will check this tomorrow. ;)
Title: Re: Can't rename files via frontend editing ? - [Fixed in 3.2.32!!!]
Post by: Arno on 21.04.2015 12:27:06
I have now found the bug and have it fixed.
Please copy the unzipped file below to: /components/com_jdownloads/views/form/tmpl/ and try it then again.

[gelöscht durch Administrator]
Title: Re: Can't rename files via frontend editing ? - [Fixed in 3.2.32!!!]
Post by: Dode on 21.04.2015 15:27:31
It's working now, even in french ! Thanks Arno, as usual ;-) .
Title: Re: Can't rename files via frontend editing ? - [Fixed in 3.2.32!!!]
Post by: Arno on 21.04.2015 15:50:08
Thanks for the result message. ;)