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.
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.
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.
showing full path after updating to joomla new version 3.6
PHP 5.6, php 7.0
joomla 3.6
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
Category | ⇒ | Fields |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-07-26 10:17:32 |
Closed_By | ⇒ | brianteeman |
Labels |
Added:
?
|
Please test PR #11288 as it solves your issue.