From 3140a41538f28fbbb2cb61ac6810bca9263ef16b Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 5 Jan 2015 16:03:24 -0800 Subject: [PATCH] js/angular-crmCaseType.js - Fix regression in promise This line was written when crmApi() return jQuery-style promises. It returns Angular-style promises. --- js/angular-crmCaseType.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/angular-crmCaseType.js b/js/angular-crmCaseType.js index dcf752a08f..f8ae955148 100644 --- a/js/angular-crmCaseType.js +++ b/js/angular-crmCaseType.js @@ -278,7 +278,7 @@ $scope.save = function() { var result = crmApi('CaseType', 'create', $scope.caseType, true); - result.success(function(data) { + result.then(function(data) { if (data.is_error === 0 || data.is_error == '0') { $scope.caseType.id = data.id; window.location.href = '#/caseType'; -- 2.25.1