mirror of
https://github.com/grocy/grocy.git
synced 2026-04-09 05:56:15 +02:00
Recalculate chore assignments when undoing an execution (fixes #2278)
This commit is contained in:
parent
78e4e918c6
commit
f6d6e933e3
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user