added destination to hat creator popup
so it returns to person page after creation.
This commit is contained in:
parent
6067afed23
commit
3226ce01d3
@ -31,7 +31,7 @@ class HatCreator extends BlockBase {
|
||||
->loadByProperties(['type' => $id, 'person' => $person_id]);
|
||||
if (!reset($hats)) {
|
||||
$label = $type['label'];
|
||||
$markup .= "<p><a class='use-ajax' data-dialog-type='modal' href='/zencrm/hat/add/$id/$person_id'>Create $label Hat</a></p>";
|
||||
$markup .= "<p><a class='use-ajax' data-dialog-type='modal' href='/zencrm/hat/add/$id/$person_id?destination=/zencrm/person/$person_id'>Create $label Hat</a></p>";
|
||||
}
|
||||
}
|
||||
return [
|
||||
|
Reference in New Issue
Block a user