mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Recalculate chore assignments when undoing an execution (fixes #2278)
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user