Changed path for adding hat to /zencrm/hat/{person_id}/....

Because the person id needs to be in third place in the URL, so that it filters the entity reference view for the contact details. But the second place cannot be "person" as then it would try to render the person blocks on th page.
This commit is contained in:
naomi
2018-04-12 12:06:51 +02:00
parent 607941c725
commit 2cf897c92b
3 changed files with 6 additions and 6 deletions

View File

@ -15,9 +15,9 @@ class HatController extends ControllerBase {
* @return string
* Return Hello string.
*/
public function createHatForPerson($type, $person_id) {
public function createHatForPerson($person_id, $hat_type_id) {
$values = array(
'type' => $type,
'type' => $hat_type_id,
'person' => $person_id
);