mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
Dashboard: Improve fix from previous commit as sListId can be null (which crashes the sanitize filter)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{# @copyright Copyright (C) 2010-2021 Combodo SARL #}
|
||||
{# @license http://opensource.org/licenses/AGPL-3.0 #}
|
||||
{% set sListId = oUIBlock.GetOption('sListId') %}
|
||||
{% set sListIDForVarSuffix = sListId|sanitize(constant('utils::ENUM_SANITIZATION_FILTER_VARIABLE_NAME')) %}
|
||||
{% set sListIDForVarSuffix = ('' ~ sListId)|sanitize(constant('utils::ENUM_SANITIZATION_FILTER_VARIABLE_NAME')) %}
|
||||
{% if oUIBlock.GetOption("iPageSize") is not empty %}
|
||||
{% set iPageSize = oUIBlock.GetOption("iPageSize") %}
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user