Fixed produces product amount handling when consuming meal plan shadow recipes (references #2160)

This commit is contained in:
Bernd Bestel
2023-03-12 22:45:04 +01:00
parent 792c710bdc
commit 6857796ef0
4 changed files with 10 additions and 7 deletions

View File

@@ -271,7 +271,7 @@ class ChoresService extends BaseService
$this->getDatabaseService()->ExecuteDbStatement('UPDATE chores_log SET chore_id = ' . $choreIdToKeep . ' WHERE chore_id = ' . $choreIdToRemove);
$this->getDatabaseService()->ExecuteDbStatement('DELETE FROM chores WHERE id = ' . $choreIdToRemove);
}
catch (Exception $ex)
catch (\Exception $ex)
{
$this->getDatabaseService()->GetDbConnectionRaw()->rollback();
throw $ex;