Merge branch 'onTheFly' of gitlab.com:Chill-Projet/chill-bundles into onTheFly

This commit is contained in:
Julie Lenaerts 2021-09-29 15:03:14 +02:00
commit d94fec3352
2 changed files with 2 additions and 15 deletions

View File

@ -705,20 +705,7 @@ export default {
this.errorMsg.push(error); this.errorMsg.push(error);
this.flag.loading = false; this.flag.loading = false;
}); });
},
/*
* Method just add closing pane to the callback method
* (get out step1 show pane, submit button)
closePaneAndCallbackSubmit(payload)
{
//this.initForm();
//this.resetPane(); // because parent callback will cast afterLastPaneAction()
console.log('will call parent callback method', payload);
// callback props method from parent
this.addressChangedCallback(payload);
} }
*/
} }
} }
</script> </script>

View File

@ -45,9 +45,9 @@ class PersonApiController extends ApiController
$person = parent::createEntity($action, $request); $person = parent::createEntity($action, $request);
// TODO temporary hack to allow creation of person with fake center // TODO temporary hack to allow creation of person with fake center
$centers = $this->authorizationHelper->getReachableCenters($this->getUser(), /* $centers = $this->authorizationHelper->getReachableCenters($this->getUser(),
new Role(PersonVoter::CREATE)); new Role(PersonVoter::CREATE));
$person->setCenter($centers[0]); $person->setCenter($centers[0]); */
return $person; return $person;
} }