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:
@ -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
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user