?
avatar shamsbd71
shamsbd71
26 Jul 2016

I was using t3 framework and for its theme list, its used class from JFormFieldFolderList. but after updating to latest joomla, its started passing full path instead of the folder name.

Steps to reproduce the issue

I'm not pretty sure in core joomla where its been used. but as if you try this:
https://docs.joomla.org/Folderlist_form_field_type

you will get folders name with full path.

Expected result

We should get only folder name, not full path. and when we will need the full path, we should have options to pass the parameter, and it will inharit the value from extended class.

Actual result

showing full path after updating to joomla new version 3.6
image

System information (as much as possible)

PHP 5.6, php 7.0
joomla 3.6

Additional comments

if we change this code : https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/fields/folderlist.php#L204

instead of this:

$folders = JFolder::folders($path, $this->filter, $this->recursive, true);

use

$folders = JFolder::folders($path, $this->filter, $this->recursive, false);

will solve the problem.

thanks

avatar shamsbd71 shamsbd71 - open - 26 Jul 2016
avatar brianteeman brianteeman - change - 26 Jul 2016
Category Fields
avatar laoneo
laoneo - comment - 26 Jul 2016

Please test PR #11288 as it solves your issue.

avatar brianteeman brianteeman - close - 26 Jul 2016
avatar brianteeman
brianteeman - comment - 26 Jul 2016

Closed as a duplicate report - please see #11288

avatar brianteeman brianteeman - change - 26 Jul 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-07-26 10:17:32
Closed_By brianteeman
avatar brianteeman brianteeman - close - 26 Jul 2016
avatar brianteeman brianteeman - change - 27 Jul 2016
Labels Added: ?

Add a Comment

Login with GitHub to post a comment