Made Offers a bit more robust and operation atomic
This commit is contained in:
@@ -349,8 +349,14 @@ class ClubsHelperControllerClub extends AbstractClubsHelperController
|
||||
|
||||
// TODO ACL needed
|
||||
|
||||
$this->club->setOfferIds($ids);
|
||||
$this->club->save();
|
||||
try
|
||||
{
|
||||
$this->club->setOfferIds($ids);
|
||||
}
|
||||
catch(ElementNotFoundException $ex)
|
||||
{
|
||||
throw new InvalidUserDataException('Es gab ein Problem mit der Eingabe. Bitte Seite neu laden und Daten erneut eintragen.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user