Fixed gh-262 that broke the saving of php values in custom field

This commit is contained in:
2018-04-13 22:06:45 +02:00
parent 04aefa256b
commit a0890ea87f
7 changed files with 23 additions and 46 deletions

View File

@ -49,20 +49,6 @@ class JFormFieldAdminviewfolderlist extends JFormFieldList
*/
public function getOptions()
{
// get custom folder files
$localfolder = JPATH_COMPONENT_ADMINISTRATOR.'/views';
// set the default
$options = array();
// import all needed classes
jimport('joomla.filesystem.folder');
// now check if there are files in the folder
if (JFolder::exists($localfolder) && $folders = JFolder::folders($localfolder))
{
foreach ($folders as $folder)
{
$options[] = JHtml::_('select.option', $folder, ComponentbuilderHelper::safeString($folder, 'W'));
}
}
return $options;
return null;
}
}

View File

@ -49,20 +49,6 @@ class JFormFieldSiteviewfolderlist extends JFormFieldList
*/
public function getOptions()
{
// get custom folder files
$localfolder = JPATH_COMPONENT_SITE.'/views';
// set the default
$options = array();
// import all needed classes
jimport('joomla.filesystem.folder');
// now check if there are files in the folder
if (JFolder::exists($localfolder) && $folders = JFolder::folders($localfolder))
{
foreach ($folders as $folder)
{
$options[] = JHtml::_('select.option', $folder, ComponentbuilderHelper::safeString($folder, 'W'));
}
}
return $options;
return null;
}
}