From 727b675c0f5ee1386e17c592832356d4ec8e2319 Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Tue, 29 Oct 2013 12:28:18 -0400 Subject: [PATCH] make create.new.shorcuts work for name or title --- CRM/Core/Block.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CRM/Core/Block.php b/CRM/Core/Block.php index cb28fbfb40..5e91b962f1 100644 --- a/CRM/Core/Block.php +++ b/CRM/Core/Block.php @@ -422,6 +422,12 @@ class CRM_Core_Block { CRM_Core_DAO::$_nullObject, CRM_Core_DAO::$_nullObject ); + + foreach ($values as $key => $val) { + if (CRM_Utils_Array::value('title', $val)) { + $values[$key]['name'] = CRM_Utils_Array::value('name', $val, $val['title']); + } + } self::setProperty(self::CREATE_NEW, 'templateValues', array('shortCuts' => $values)); } -- 2.25.1