mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Merge branch 'ent-12533-16681-error-al-aplicar-filtro-de-evento-personalizado-en-widget-list-of-latest-events' into 'develop'
Ent 12533 16681 error al aplicar filtro de evento personalizado en widget list of latest events See merge request artica/pandorafms!6716
This commit is contained in:
commit
7a238c34d6
@ -581,6 +581,12 @@ class EventsListWidget extends Widget
|
|||||||
$customFilter = \events_get_event_filter($this->values['customFilter']);
|
$customFilter = \events_get_event_filter($this->values['customFilter']);
|
||||||
if ($customFilter !== false) {
|
if ($customFilter !== false) {
|
||||||
$filter = $customFilter;
|
$filter = $customFilter;
|
||||||
|
if (in_array('0', $this->values['groupId'])) {
|
||||||
|
$filter['id_group_filter'] = 0;
|
||||||
|
} else {
|
||||||
|
$filter['id_group_filter'] = (!empty($this->values['groupId'][0])) ? $this->values['groupId'] : 0;
|
||||||
|
}
|
||||||
|
|
||||||
$filter['tag_with'] = base64_encode(
|
$filter['tag_with'] = base64_encode(
|
||||||
io_safe_output($filter['tag_with'])
|
io_safe_output($filter['tag_with'])
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user