Recalculate chore assignments when undoing an execution (fixes #2278)

This commit is contained in:
Bernd Bestel
2023-07-29 13:49:14 +02:00
parent 78e4e918c6
commit f6d6e933e3
2 changed files with 3 additions and 0 deletions

View File

@@ -71,6 +71,7 @@
- The green button now tracks an execution of the corresponding chore on the next scheduled time, rather than for now/today - The green button now tracks an execution of the corresponding chore on the next scheduled time, rather than for now/today
- New context-/more menu option "Track chore execution now" to track an execution for now/today (so the same what the green button did before) - New context-/more menu option "Track chore execution now" to track an execution for now/today (so the same what the green button did before)
- Removed the limitation on the chore tracking page that the tracked time couldn't be in the future - Removed the limitation on the chore tracking page that the tracked time couldn't be in the future
- Fixed that "assidgned to" was not recalculated when undoing chores
### Calendar ### Calendar

View File

@@ -243,6 +243,8 @@ class ChoresService extends BaseService
'undone' => 1, 'undone' => 1,
'undone_timestamp' => date('Y-m-d H:i:s') 'undone_timestamp' => date('Y-m-d H:i:s')
]); ]);
$this->CalculateNextExecutionAssignment($logRow->chore_id);
} }
public function MergeChores(int $choreIdToKeep, int $choreIdToRemove) public function MergeChores(int $choreIdToKeep, int $choreIdToRemove)