Bug ?? Why fields settings contain settings from other fields in the same content

Topics: Customizing Orchard, Troubleshooting
Dec 14, 2012 at 8:25 PM

Looking in the DB table Settings_ContentPartFieldDefinitionRecord, in the Settings column I discovered that for exemple a filefield settings were containing settings from an Image field in complement to its own settings.

There is clearly no reason for this, it seems to be a bug ?

<settings DisplayName="Link" 
FileFieldSettings.Required="False" 
FileFieldSettings.OpenAction="_blank" 
ImageFieldSettings.MaxHeight="0" 
ImageFieldSettings.MaxWidth="0" 
ImageFieldSettings.Required="False" 
ImageFieldSettings.AlternateText="False" 
ImageFieldSettings.ResizeAction="Validate" 
TextFieldSettings.Flavor="Large" 
TextFieldSettings.Required="False" />

Settings
<settings DisplayName="Separateur1" 
DecoratorFieldSettings.Mode="full" 
DecoratorFieldSettings.HtmlTag="div" 
DecoratorFieldSettings.HasAttributes="True" 
DecoratorFieldSettings.Attributes="style='width: 100%;border: 1px solid blue; float: left;'" 
DecoratorFieldSettings.CssClass="
DecoratorFieldSettings.HasContent="False" 
DecoratorFieldSettings.TagContent="
FileFieldSettings.Required="False" 
FileFieldSettings.OpenAction="_blank" 
ImageFieldSettings.MaxHeight="0" 
ImageFieldSettings.MaxWidth="0" 
ImageFieldSettings.Required="False" 
ImageFieldSettings.AlternateText="False" 
ImageFieldSettings.ResizeAction="Validate" />

Coordinator
Dec 14, 2012 at 9:00 PM

Clearly. Please file a bug.