Skip to content

Commit

Permalink
[K6.2] On J! 5.0 when edit a category the list have a white background
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Nov 1, 2023
1 parent 3512ee2 commit c0029f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions src/admin/src/Model/CategoriesModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,28 +130,28 @@ public function getAdminOptions()
$lists = [];
$lists ['accesstypes'] = KunenaAccess::getInstance()->getAccessTypesList($category);
$lists ['accesslists'] = KunenaAccess::getInstance()->getAccessOptions($category);
$lists ['categories'] = HTMLHelper::_('kunenaforum.categorylist', 'parentid', 0, null, $catParams, 'class="inputbox form-control"', 'value', 'text', $category->parentid);
$lists ['channels'] = HTMLHelper::_('kunenaforum.categorylist', 'channels[]', 0, $channelsOptions, $channelsParams, 'class="inputbox form-control" multiple="multiple"', 'value', 'text', explode(',', $category->channels));
$lists ['categories'] = HTMLHelper::_('kunenaforum.categorylist', 'parentid', 0, null, $catParams, 'class="inputbox form-select"', 'value', 'text', $category->parentid);
$lists ['channels'] = HTMLHelper::_('kunenaforum.categorylist', 'channels[]', 0, $channelsOptions, $channelsParams, 'class="inputbox form-select" multiple="multiple"', 'value', 'text', explode(',', $category->channels));
$lists ['aliases'] = $aliases ? HTMLHelper::_('kunenaforum.checklist', 'aliases', $aliases, true, 'category_aliases') : null;
$lists ['published'] = HTMLHelper::_('select.genericlist', $published, 'published', 'class="inputbox form-control"', 'value', 'text', $category->published);
$lists ['forumLocked'] = HTMLHelper::_('select.genericlist', $yesno, 'locked', 'class="inputbox form-control" size="1"', 'value', 'text', $category->locked);
$lists ['forumReview'] = HTMLHelper::_('select.genericlist', $yesno, 'review', 'class="inputbox form-control" size="1"', 'value', 'text', $category->review);
$lists ['allowPolls'] = HTMLHelper::_('select.genericlist', $yesno, 'allowPolls', 'class="inputbox form-control" size="1"', 'value', 'text', $category->allowPolls);
$lists ['allowAnonymous'] = HTMLHelper::_('select.genericlist', $yesno, 'allowAnonymous', 'class="inputbox form-control" size="1"', 'value', 'text', $category->allowAnonymous);
$lists ['postAnonymous'] = HTMLHelper::_('select.genericlist', $postAnonymous, 'postAnonymous', 'class="inputbox form-control" size="1"', 'value', 'text', $category->postAnonymous);
$lists ['topicOrdering'] = HTMLHelper::_('select.genericlist', $topicOrderingOptions, 'topicOrdering', 'class="inputbox form-control" size="1"', 'value', 'text', $category->topicOrdering);
$lists ['allowRatings'] = HTMLHelper::_('select.genericlist', $yesno, 'allowRatings', 'class="inputbox form-control" size="1"', 'value', 'text', $category->allowRatings);
$lists ['published'] = HTMLHelper::_('select.genericlist', $published, 'published', 'class="inputbox form-select"', 'value', 'text', $category->published);
$lists ['forumLocked'] = HTMLHelper::_('select.genericlist', $yesno, 'locked', 'class="inputbox form-select" size="1"', 'value', 'text', $category->locked);
$lists ['forumReview'] = HTMLHelper::_('select.genericlist', $yesno, 'review', 'class="inputbox form-select" size="1"', 'value', 'text', $category->review);
$lists ['allowPolls'] = HTMLHelper::_('select.genericlist', $yesno, 'allowPolls', 'class="inputbox form-select" size="1"', 'value', 'text', $category->allowPolls);
$lists ['allowAnonymous'] = HTMLHelper::_('select.genericlist', $yesno, 'allowAnonymous', 'class="inputbox form-select" size="1"', 'value', 'text', $category->allowAnonymous);
$lists ['postAnonymous'] = HTMLHelper::_('select.genericlist', $postAnonymous, 'postAnonymous', 'class="inputbox form-select" size="1"', 'value', 'text', $category->postAnonymous);
$lists ['topicOrdering'] = HTMLHelper::_('select.genericlist', $topicOrderingOptions, 'topicOrdering', 'class="inputbox form-select" size="1"', 'value', 'text', $category->topicOrdering);
$lists ['allowRatings'] = HTMLHelper::_('select.genericlist', $yesno, 'allowRatings', 'class="inputbox form-select" size="1"', 'value', 'text', $category->allowRatings);

$options = [];
$options[0] = HTMLHelper::_('select.option', '0', Text::_('COM_KUNENA_A_CATEGORY_CFG_OPTION_NEVER'));
$options[1] = HTMLHelper::_('select.option', '1', Text::_('COM_KUNENA_A_CATEGORY_CFG_OPTION_SECTION'));
$options[2] = HTMLHelper::_('select.option', '2', Text::_('COM_KUNENA_A_CATEGORY_CFG_OPTION_CATEGORY'));
$options[3] = HTMLHelper::_('select.option', '3', Text::_('COM_KUNENA_A_CATEGORY_CFG_OPTION_SUBCATEGORY'));
$lists['display_parent'] = HTMLHelper::_('select.genericlist', $options, 'params[display][index][parent]', 'class="inputbox form-control" size="1"', 'value', 'text', $category->params->get('display.index.parent', '3'));
$lists['display_parent'] = HTMLHelper::_('select.genericlist', $options, 'params[display][index][parent]', 'class="inputbox form-select" size="1"', 'value', 'text', $category->params->get('display.index.parent', '3'));

unset($options[1]);

$lists['display_children'] = HTMLHelper::_('select.genericlist', $options, 'params[display][index][children]', 'class="inputbox form-control" size="1"', 'value', 'text', $category->params->get('display.index.children', '3'));
$lists['display_children'] = HTMLHelper::_('select.genericlist', $options, 'params[display][index][children]', 'class="inputbox form-select" size="1"', 'value', 'text', $category->params->get('display.index.children', '3'));

$topicIcons = [];
$topicIconslist = Folder::folders(JPATH_ROOT . '/media/kunena/topic_icons');
Expand All @@ -166,7 +166,7 @@ public function getAdminOptions()
$value = $category->iconset;
}

$lists ['categoryIconset'] = HTMLHelper::_('select.genericlist', $topicIcons, 'iconset', 'class="inputbox form-control" size="1"', 'value', 'text', $value);
$lists ['categoryIconset'] = HTMLHelper::_('select.genericlist', $topicIcons, 'iconset', 'class="inputbox form-select" size="1"', 'value', 'text', $value);

return $lists;
}
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/plg_kunena_joomla/KunenaAccessJoomla.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function getAccessOptions($accesstype, KunenaCategory $category): array
'access.usergroup',
'params-joomla-level[access_post][]',
$category->params->get('access_post', [2, 6, 8]),
'multiple="multiple" class="inputbox form-control form-select" size="10"',
'multiple="multiple" class="inputbox form-select" size="10"',
false
),
];
Expand All @@ -188,7 +188,7 @@ public function getAccessOptions($accesstype, KunenaCategory $category): array
'access.usergroup',
'params-joomla-level[access_reply][]',
$category->params->get('access_reply', [2, 6, 8]),
'multiple="multiple" class="inputbox form-control form-select" size="10"',
'multiple="multiple" class="inputbox form-select" size="10"',
false
),
];
Expand Down

0 comments on commit c0029f9

Please sign in to comment.