From f42b448f6c1b08c86f0c568612b26fe0941504d8 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 12 Aug 2014 02:22:19 -0700 Subject: [PATCH] CRM-14798 - Allow editing case-type names even if malformed This is a follow-up to #3820 --- js/angular-crmCaseType.js | 4 ++++ partials/crmCaseType/caseTypeDetails.html | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/js/angular-crmCaseType.js b/js/angular-crmCaseType.js index 8f579356b1..fa68c64bf6 100644 --- a/js/angular-crmCaseType.js +++ b/js/angular-crmCaseType.js @@ -228,6 +228,10 @@ } }; + $scope.isValidName = function(name) { + return !name || name.match(/^[a-zA-Z0-9_]+$/); + }; + $scope.getWorkflowName = function(activitySet) { var result = 'Unknown'; _.each($scope.workflows, function(value, key) { diff --git a/partials/crmCaseType/caseTypeDetails.html b/partials/crmCaseType/caseTypeDetails.html index 8e84a39452..3a24b86ee8 100644 --- a/partials/crmCaseType/caseTypeDetails.html +++ b/partials/crmCaseType/caseTypeDetails.html @@ -34,12 +34,14 @@ The original form used table layout; don't know if we have an alternative, CSS-b name="caseTypeName" ng-model="caseType.name" ng-disabled="locks.caseTypeName" - ng-pattern="/^[a-zA-Z0-9_]+$/" required class="big crm-form-text"/> +
+ WARNING: The case type name includes deprecated characters. +
WARNING: If any external files or programs reference the old "Name", then they must be updated manually.
-- 2.25.1