forked from joomla/Component-Builder
Fixed the file naming colution for the new filters. gh-378 Use the new select language string in filters.
This commit is contained in:
parent
732521b3ab
commit
bbee45ccab
@ -16,7 +16,7 @@
|
||||
@author ###AUTHOR### <###AUTHORWEBSITE###>###CONTRIBUTORS###
|
||||
@copyright ###COPYRIGHT###
|
||||
@license ###LICENSE###
|
||||
|
||||
|
||||
###SHORT_DESCRIPTION###
|
||||
|
||||
|
||||
/----------------------------------------------------------------------------------------------------------------------------------*/
|
@ -5038,7 +5038,7 @@ class Fields extends Structure
|
||||
{
|
||||
// this pains me... but to avoid collusion
|
||||
$filter_type_code = ComponentbuilderHelper::safeString(
|
||||
$name . $field['filter'] . $typeName
|
||||
$nameListCode . 'filter' . $name
|
||||
);
|
||||
$filter_type_code = preg_replace('/_+/', '', $filter_type_code);
|
||||
$filter_function_name = ComponentbuilderHelper::safeString(
|
||||
|
@ -17660,9 +17660,14 @@ class Interpretation extends Fields
|
||||
. "protected function getThe" . $filter['function']
|
||||
. "Selections()";
|
||||
$function[] = $this->_t(1) . "{";
|
||||
$function[] = $this->_t(2) . "//" . $this->setLine(__LINE__)
|
||||
. " Get a db connection.";
|
||||
}
|
||||
else
|
||||
{
|
||||
$function[] = "//" . $this->setLine(__LINE__)
|
||||
. " Get a db connection.";
|
||||
}
|
||||
$function[] = $this->_t(2) . "//" . $this->setLine(__LINE__)
|
||||
. " Get a db connection.";
|
||||
$function[] = $this->_t(2) . "\$db = JFactory::getDbo();";
|
||||
$function[] = PHP_EOL . $this->_t(2) . "//"
|
||||
. $this->setLine(__LINE__)
|
||||
@ -17751,8 +17756,8 @@ class Interpretation extends Fields
|
||||
if (!$funtion_path && $filter['multi'] == 1)
|
||||
{
|
||||
$function[] = $this->_t(3)
|
||||
. "\$_filter[] = JHtml::_('select.option', '', '- Select ' . JText:"
|
||||
. ":_('" . $filter['lang'] . "') . ' -');";
|
||||
. "\$_filter[] = JHtml::_('select.option', '', '- ' . JText:"
|
||||
. ":_('" . $filter['lang_select'] . "') . ' -');";
|
||||
}
|
||||
$function[] = $this->_t(3) . "foreach (\$results as \$"
|
||||
. $filter['code'] . ")";
|
||||
|
Loading…
Reference in New Issue
Block a user