From dbaade6ef1fc30ef1f0722b09822d82ca8b77b03 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 12 Jan 2017 11:24:55 -0500 Subject: [PATCH] CRM-17663 repair null dashlet names See http://civicrm.stackexchange.com/questions/16644 --- CRM/Upgrade/Incremental/sql/4.7.16.mysql.tpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Upgrade/Incremental/sql/4.7.16.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.7.16.mysql.tpl index c91bbd2340be..3a0092b85dda 100644 --- a/CRM/Upgrade/Incremental/sql/4.7.16.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/4.7.16.mysql.tpl @@ -20,3 +20,8 @@ UPDATE civicrm_option_value SET icon = 'fa-user-circle-o' WHERE option_group_id UPDATE civicrm_option_value SET icon = 'fa-link' WHERE option_group_id = @option_group_id_act AND name = 'Link Cases'; UPDATE civicrm_option_value SET icon = 'fa-tags' WHERE option_group_id = @option_group_id_act AND name = 'Change Case Tags'; UPDATE civicrm_option_value SET icon = 'fa-users' WHERE option_group_id = @option_group_id_act AND name = 'Add Client To Case'; + +-- CRM-17663 repair null dashlet names +UPDATE `civicrm_dashboard` + SET name = CONCAT('report/', SUBSTRING_INDEX(SUBSTRING_INDEX(url, '?', 1), '/', -1)) + WHERE name IS NULL AND url LIKE "civicrm/report/instance/%";