mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Merge branch 'onTheFly' of gitlab.com:Chill-Projet/chill-bundles into onTheFly
This commit is contained in:
commit
d94fec3352
@ -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>
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user