projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f91e4af
)
js/angular-crmCaseType.js - Fix regression in promise
author
Tim Otten
<totten@civicrm.org>
Tue, 6 Jan 2015 00:03:24 +0000
(16:03 -0800)
committer
Tim Otten
<totten@civicrm.org>
Tue, 6 Jan 2015 00:03:24 +0000
(16:03 -0800)
This line was written when crmApi() return jQuery-style promises. It returns
Angular-style promises.
js/angular-crmCaseType.js
patch
|
blob
|
blame
|
history
diff --git
a/js/angular-crmCaseType.js
b/js/angular-crmCaseType.js
index dcf752a08f94fb554d384339efcea71cc310e860..f8ae9551485c1dc873472ecf6a9b5ea8111264ab 100644
(file)
--- 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';