From: Coleman Watts Date: Sun, 1 Nov 2015 19:52:19 +0000 (-0500) Subject: Fix setting undefined view value X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=495f94fb2bc8777798085832c791794e5f3cffc4;p=civicrm-core.git Fix setting undefined view value --- diff --git a/ang/crmUi.js b/ang/crmUi.js index 8540e40dd4..19672daed1 100644 --- a/ang/crmUi.js +++ b/ang/crmUi.js @@ -397,7 +397,7 @@ ngModel.$render = function(value) { editor.done(function() { - CRM.wysiwyg.setVal(elm, ngModel.$viewValue); + CRM.wysiwyg.setVal(elm, ngModel.$viewValue || ''); }); }; }