Another NRE that I missed
This commit is contained in:
@@ -132,18 +132,21 @@ namespace umbraco.cms.businesslogic.datatype
|
||||
private void clearRelatedValues()
|
||||
{
|
||||
string propertyTypeAlias = new Property(PropertyId).PropertyType.Alias;
|
||||
XmlNode uploadFieldConfigNode =
|
||||
UmbracoSettings.ImageAutoFillImageProperties.SelectSingleNode(
|
||||
string.Format("uploadField [@alias = \"{0}\"]", propertyTypeAlias));
|
||||
if (uploadFieldConfigNode != null)
|
||||
if (UmbracoSettings.ImageAutoFillImageProperties != null)
|
||||
{
|
||||
// get the current document
|
||||
Content content = Content.GetContentFromVersion(Version);
|
||||
// only add dimensions to web images
|
||||
updateContentProperty(uploadFieldConfigNode, content, "widthFieldAlias", String.Empty);
|
||||
updateContentProperty(uploadFieldConfigNode, content, "heightFieldAlias", String.Empty);
|
||||
updateContentProperty(uploadFieldConfigNode, content, "lengthFieldAlias", String.Empty);
|
||||
updateContentProperty(uploadFieldConfigNode, content, "extensionFieldAlias", String.Empty);
|
||||
XmlNode uploadFieldConfigNode =
|
||||
UmbracoSettings.ImageAutoFillImageProperties.SelectSingleNode(
|
||||
string.Format("uploadField [@alias = \"{0}\"]", propertyTypeAlias));
|
||||
if (uploadFieldConfigNode != null)
|
||||
{
|
||||
// get the current document
|
||||
Content content = Content.GetContentFromVersion(Version);
|
||||
// only add dimensions to web images
|
||||
updateContentProperty(uploadFieldConfigNode, content, "widthFieldAlias", String.Empty);
|
||||
updateContentProperty(uploadFieldConfigNode, content, "heightFieldAlias", String.Empty);
|
||||
updateContentProperty(uploadFieldConfigNode, content, "lengthFieldAlias", String.Empty);
|
||||
updateContentProperty(uploadFieldConfigNode, content, "extensionFieldAlias", String.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user