Resolve gh-609 to make sure that custom code set in a field that gets linked to a module will get added to the module.

This commit is contained in:
2020-12-05 08:17:54 +02:00
parent e7670a1edd
commit dfbd2b2a6d
7 changed files with 319 additions and 478 deletions

View File

@ -5038,7 +5038,7 @@ class Fields extends Structure
{
// this pains me... but to avoid collusion
$filter_type_code = ComponentbuilderHelper::safeString(
$nameListCode . 'filter' . $name
$nameListCode . 'filter' . $name
);
$filter_type_code = preg_replace('/_+/', '', $filter_type_code);
$filter_function_name = ComponentbuilderHelper::safeString(
@ -5628,7 +5628,8 @@ class Fields extends Structure
$field_filter_sets[] = $this->_t(3) . 'type="category"';
$field_filter_sets[] = $this->_t(3) . 'name="category_id"';
$field_filter_sets[] = $this->_t(3)
. 'label="' . $this->categoryBuilder[$nameListCode]['name'] . '"';
. 'label="' . $this->categoryBuilder[$nameListCode]['name']
. '"';
$field_filter_sets[] = $this->_t(3)
. 'description="JOPTION_FILTER_CATEGORY_DESC"';
$field_filter_sets[] = $this->_t(3) . 'multiple="true"';