ServiceController: keep applied service when sent

This commit is contained in:
Thomas Gelf 2016-05-27 11:08:34 +02:00
parent 7dfadf1951
commit 4b183203f9
1 changed files with 1 additions and 3 deletions

View File

@ -73,11 +73,9 @@ class ServiceController extends ObjectController
protected function beforeHandlingAddRequest($form) protected function beforeHandlingAddRequest($form)
{ {
if ($this->apply) { if ($this->apply) {
if (!$form->hasBeenSent()) {
$form->createApplyRuleFor($this->apply); $form->createApplyRuleFor($this->apply);
} }
} }
}
public function editAction() public function editAction()
{ {