Richtext null ref exception fixed
This commit is contained in:
@@ -113,7 +113,7 @@
|
||||
UmbClientMgr.openAngularModalWindow({
|
||||
template: 'views/common/dialogs/iconpicker.html',
|
||||
callback: function(data){
|
||||
jQuery(that).next().val("." + data);
|
||||
jQuery(that).next().val(data);
|
||||
jQuery(that).find("i").attr("class", data);
|
||||
}});
|
||||
|
||||
|
||||
@@ -34,8 +34,10 @@ namespace Umbraco.Web.PropertyEditors
|
||||
/// <returns></returns>
|
||||
public override object FormatDataForEditor(object dbValue)
|
||||
{
|
||||
var parsed = MacroTagParser.FormatRichTextPersistedDataForEditor(dbValue.ToString(), new Dictionary<string, string>());
|
||||
if (dbValue == null)
|
||||
return dbValue;
|
||||
|
||||
var parsed = MacroTagParser.FormatRichTextPersistedDataForEditor(dbValue.ToString(), new Dictionary<string, string>());
|
||||
return parsed;
|
||||
}
|
||||
|
||||
|
||||
@@ -429,7 +429,6 @@ namespace umbraco.controls
|
||||
txtName.Text = _contentType.GetRawText();
|
||||
txtAlias.Text = _contentType.Alias;
|
||||
description.Text = _contentType.GetRawDescription();
|
||||
|
||||
tb_icon.Value = _contentType.IconUrl;
|
||||
|
||||
if(string.IsNullOrEmpty(_contentType.IconUrl))
|
||||
|
||||
Reference in New Issue
Block a user