Fix setting undefined view value
authorColeman Watts <coleman@civicrm.org>
Sun, 1 Nov 2015 19:52:19 +0000 (14:52 -0500)
committerColeman Watts <coleman@civicrm.org>
Sun, 1 Nov 2015 19:52:19 +0000 (14:52 -0500)
ang/crmUi.js

index 8540e40dd485906038de05391653abe8a2e0c468..19672daed18b2fad3303850bac68e2a378e98790 100644 (file)
 
           ngModel.$render = function(value) {
             editor.done(function() {
-              CRM.wysiwyg.setVal(elm, ngModel.$viewValue);
+              CRM.wysiwyg.setVal(elm, ngModel.$viewValue || '');
             });
           };
         }