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']);
|
||||
if ($customFilter !== false) {
|
||||
$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(
|
||||
io_safe_output($filter['tag_with'])
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue