Skip to content
Snippets Groups Projects
Commit 19d88f12 authored by Dave Greenberg's avatar Dave Greenberg
Browse files

CRM-14016 - Fix fatal error in Save Copy due to NULL instanceID.

----------------------------------------
* CRM-14016: remove report instance from navigation via report settings
  http://issues.civicrm.org/jira/browse/CRM-14016
parent a72acd76
No related branches found
No related tags found
No related merge requests found
......@@ -254,7 +254,7 @@ class CRM_Report_Form_Instance {
if (CRM_Utils_Array::value('is_navigation', $params)) {
$params['navigation'] = $form->_navigation;
}
else {
else if ($instanceID){
//delete navigation if exists
$navId = CRM_Core_DAO::getFieldValue('CRM_Report_DAO_ReportInstance', $instanceID, 'navigation_id', 'id');
if ($navId) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment