jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: dr236 on 18.10.2016 17:37:14

Title: Suggested patch for jdcategoryparent.php in admin - [Fixed in 3.2.47]
Post by: dr236 on 18.10.2016 17:37:14
I think there might be a small bug in
administrator/components/com_jdownloads/models/fields/jdcategoryparent.php.

Namely, the (3) calls to
$user->authorise('X', 'jdownloads.category.'.$option->value)
(where X=core.create, core.edit, or core.edit.own) should be changed to $user->authorise('X', 'com_jdownloads.category.'.$option->value)

Also, could the patch I suggested on 11/05/2016 (namely add
$dirlist = array_values($dirlist);
after the line
natcasesort ( $dirlist ) ;
in administrator/components/com_jdownloads/helpers/jdownloadshelper.php)
be applied, assuming you agree with it (it doesn't seem to be in jd 3.2.46).

Thanks,
David
Title: Re: Suggested patch for jdcategoryparent.php in admin
Post by: Arno on 18.10.2016 21:52:50
Hi,
sorry for my mistake with the older bugfix. It seems that i had forgot it.
I have now added all your bugfixes and it will be a part from the next version 3.2.47.
Many thanks.  ;)