----------------------------------------
* CRM-17176: Add api action to reset reports menu
https://issues.civicrm.org/jira/browse/CRM-17176
*/
function civicrm_api3_navigation_reset($params) {
if ($params['for'] == 'report') {
- CRM_Core_BAO_Navigation::resetNavigation();
+ CRM_Core_BAO_Navigation::rebuildReportsNavigation($params['domain_id']);
}
- CRM_Core_BAO_Navigation::rebuildReportsNavigation($params['domain_id']);
+ CRM_Core_BAO_Navigation::resetNavigation();
return civicrm_api3_create_success(1, $params, 'navigation', 'reset');
}
e.preventDefault();
CRM.confirm({
title: $(this).text(),
- message: '{/literal}{ts escape='js'}This will rebuild the "Reports" menu to include all currently active reports.{/ts}{literal}'
+ message: '{/literal}{ts escape='js'}This will add links for all currently active reports to the "Reports" menu under the relevant component. If you have added report instances to other menus, they will be moved to "Reports". Are you sure?{/ts}{literal}'
})
.on('crmConfirm:yes', function() {
$('#crm-container').block();