#8146 Fixed max hours
This commit is contained in:
parent
945392b615
commit
3b49b28d9e
|
@ -519,8 +519,6 @@ class EventsListWidget extends Widget
|
|||
}
|
||||
}
|
||||
|
||||
$hours = ($this->values['maxHours'] * SECONDS_1HOUR);
|
||||
|
||||
// Put hours in seconds.
|
||||
$filter = [];
|
||||
$order = [];
|
||||
|
@ -546,7 +544,7 @@ class EventsListWidget extends Widget
|
|||
}
|
||||
} else {
|
||||
// Filtering.
|
||||
$filter['event_view_hr'] = $hours;
|
||||
$filter['event_view_hr'] = $this->values['maxHours'];
|
||||
|
||||
// Group.
|
||||
$filter['id_group_filter'] = $this->values['groupId'];
|
||||
|
|
Loading…
Reference in New Issue