X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPage%2FEntityPageTrait.php;h=ab93fb483e3c536e05111bbd5713d3ef08bd7948;hb=442174f07f377a84d4484db55072ed15bbee0bc2;hp=2f043957f49cd644d9df3895083905e12715d93d;hpb=76f7a8b859656ae44823c29002f1d9e76c0f9146;p=civicrm-core.git diff --git a/CRM/Core/Page/EntityPageTrait.php b/CRM/Core/Page/EntityPageTrait.php index 2f043957f4..ab93fb483e 100644 --- a/CRM/Core/Page/EntityPageTrait.php +++ b/CRM/Core/Page/EntityPageTrait.php @@ -124,8 +124,15 @@ trait CRM_Core_Page_EntityPageTrait { return NULL; } + /** + * @return string + */ + protected function getDefaultAction() { + return 'browse'; + } + public function preProcessQuickEntityPage() { - $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse'); + $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, $this->getDefaultAction()); $this->assign('action', $this->getAction()); $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);