Skip to content

Commit

Permalink
[K6.1] Error in foreach in select waiting for array sting given
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Aug 6, 2023
1 parent d7c57ed commit 1970b67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
3 changes: 3 additions & 0 deletions src/admin/src/Model/LogsModel.php
Expand Up @@ -417,6 +417,9 @@ protected function populateState($ordering = null, $direction = null)
$filterActive .= $value = $this->getUserStateFromRequest($this->context . '.filter.usertypes', 'filter_usertypes', '', 'string');
$this->setState('filter.usertypes', $value);

$filterActive .= $value = $this->getUserStateFromRequest($this->context . '.filter.userfields', 'filter_userfields', '', 'string');
$this->setState('filter.userfields', $value);

$this->setState('filter.active', !empty($filterActive));

$group = [];
Expand Down
10 changes: 1 addition & 9 deletions src/admin/tmpl/logs/default.php
Expand Up @@ -23,7 +23,7 @@
use Kunena\Forum\Libraries\User\KunenaUserHelper;
use Kunena\Forum\Libraries\Version\KunenaVersion;

$filterItem = $this->escape($this->state->get('item.id'));
$filterItem = $this->escape($this->state->get('item.id'));
?>

<script type="text/javascript">
Expand Down Expand Up @@ -91,14 +91,6 @@ class="element-invisible"><?php echo Text::_('JGLOBAL_SORT_BY'); ?></label>
<?php echo HTMLHelper::_('select.options', $this->sortFields, 'value', 'text', $this->list->Ordering); ?>
</select>
</div>
<div class="btn-group pull-right">
<label for="sortTable" class="element-invisible"><?php echo 'Filter users by:'; ?></label>
<select name="filter_usertypes" id="filter_usertypes" class="input-medium filter"
onchange="Joomla.orderTable()">
<option value=""><?php echo 'All'; ?></option>
<?php echo HTMLHelper::_('select.options', $this->filter->UserFields, 'value', 'text', $this->filter->Usertypes); ?>
</select>
</div>
<div class="clearfix"></div>
</div>

Expand Down

0 comments on commit 1970b67

Please sign in to comment.