crmMailingMgr - Fix saving of blank footer_id/header_id
authorTim Otten <totten@civicrm.org>
Thu, 12 Feb 2015 15:44:58 +0000 (07:44 -0800)
committerTim Otten <totten@civicrm.org>
Thu, 12 Feb 2015 19:59:17 +0000 (11:59 -0800)
js/angular-crmMailing/services.js

index 61f3c2219dad4a72736b66fdd005e003b433f1e9..08efca1fb478ae798b286fa5f828dd794f70c3ba 100644 (file)
 
         // Angular ngModel sometimes treats blank fields as undefined.
         angular.forEach(mailing, function(value, key) {
-          if (value === undefined) {
+          if (value === undefined || value === null) {
             mailing[key] = '';
           }
         });