Source
case (bool) preg_match('/web.dashboard.widget.navtree.item-\d+.toggle/', $this->getInput('idx')):
<?php
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
class CControllerProfileUpdate extends CController {
protected function checkInput() {
$fields = [
'idx' => 'required|string',
'value_int' => 'int32',
'value_str' => 'string',
'idx2' => 'array_id'
];
$ret = $this->validateInput($fields);
if ($ret) {
switch ($this->getInput('idx')) {
case 'web.action.list.filter.active':
case 'web.actionlog.filter.active':
case 'web.auditacts.filter.active':
case 'web.auditlog.filter.active':
case 'web.avail_report.filter.active':
case 'web.charts.filter.active':
case 'web.connector.filter.active':
case 'web.correlation.filter.active':
case 'web.dashboard.filter.active':
case 'web.dashboard.hostid':
case 'web.dashboard.last_widget_type':
case 'web.discovery.filter.active':
case 'web.discoveryconf.filter.active':
case 'web.hostgroups.filter.active':
case 'web.hostinventories.filter.active':
case 'web.hostinventoriesoverview.filter.active':
case 'web.hosts.filter.active':
case 'web.hosts.graphs.filter.active':
case 'web.hosts.host_discovery.filter.active':
case 'web.hosts.httpconf.filter.active':
case 'web.hosts.items.list.filter.active':
case 'web.hosts.trigger.list.filter.active':
case 'web.hostsmon.filter.active':
case 'web.httpdetails.filter.active':
case 'web.item.graph.filter.active':
case 'web.layout.mode':
case 'web.maintenance.filter.active':
case 'web.media_types.filter.active':
case 'web.modules.filter.active':
case 'web.problem.filter.active':
case 'web.proxies.filter.active':
case 'web.proxygroups.filter.active':
case 'web.scheduledreport.filter.active':