Skip to content
Snippets Groups Projects
Commit c2d33dfe authored by jaapjansma's avatar jaapjansma
Browse files

Merge branch 'fixes' into 'master'

Fixes

See merge request extensions/documents!40
parents c1742415 30a0589c
Branches master
No related tags found
No related merge requests found
......@@ -156,4 +156,4 @@ class DocumentGetSpecProvider extends AutoService implements SpecProviderInterfa
}
}
\ No newline at end of file
}
......@@ -158,7 +158,9 @@ function documents_civicrm_tabset($path, &$tabs, $context) {
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_pageRun/
*/
function documents_civicrm_pageRun($page) {
if ($page instanceof CRM_Case_Page_Tab) {
if ($page instanceof CRM_Case_Page_Tab
&& ($page->getVar('_action') & CRM_Core_Action::VIEW)
) {
$caseId = $page->getVar('_id');
$page = new CRM_Documents_Page_CaseDocuments($caseId);
$content = $page->run();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment