mirror of
https://github.com/grocy/grocy.git
synced 2025-08-19 03:40:10 +00:00
Make it possible to hide chores/batteries (closes #1069)
This commit is contained in:
@@ -52,7 +52,7 @@ class CalendarService extends BaseService
|
||||
{
|
||||
$users = $this->getUsersService()->GetUsersAsDto();
|
||||
|
||||
$chores = $this->getDatabase()->chores();
|
||||
$chores = $this->getDatabase()->chores()->where('active = 1');
|
||||
$titlePrefix = $this->getLocalizationService()->__t('Chore due') . ': ';
|
||||
|
||||
foreach ($this->getChoresService()->GetCurrent() as $currentChoreEntry)
|
||||
@@ -80,7 +80,7 @@ class CalendarService extends BaseService
|
||||
|
||||
if (GROCY_FEATURE_FLAG_BATTERIES)
|
||||
{
|
||||
$batteries = $this->getDatabase()->batteries();
|
||||
$batteries = $this->getDatabase()->batteries()->where('active = 1');
|
||||
$titlePrefix = $this->getLocalizationService()->__t('Battery charge cycle due') . ': ';
|
||||
|
||||
foreach ($this->getBatteriesService()->GetCurrent() as $currentBatteryEntry)
|
||||
|
Reference in New Issue
Block a user