Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Composite.Versioning.ContentVersioning] Data item deleted via foreign key not saved in the log #54

Open
VolodymyrMuzyka opened this issue Feb 9, 2017 · 0 comments

Comments

@VolodymyrMuzyka
Copy link
Contributor

Composite.Versioning.ContentVersioning - 2.4.1
Composite C1 Build no. 5.0.5827.21806

  1. Create data item which have ForeignKey with AllowCascadeDeletes = true:

     [ImmutableFieldId("{7A1ECB2F-49A8-4012-83E3-A3E420B296CA}")]
     [FormRenderingProfile(WidgetFunctionMarkup = @"<f:widgetfunction xmlns:f=""http://www.composite.net/ns/function/1.0"" name=""Composite.Widgets.ImageSelector""><f:param name=""Required"" value=""False"" /></f:widgetfunction>")]
     [StoreFieldType(PhysicalStoreFieldType.String, 2048, IsNullable = true)]
     [FieldPosition(7)]
     [NullStringLengthValidator(0, 2048)]
     [ForeignKey("Composite.Data.Types.IImageFile,Composite", AllowCascadeDeletes = true, NullReferenceValue = null)]
     string Image { get; set; }
    
  2. Select image, save.

  3. Edit again and delete image via image selection dialog - data item deleted.

  4. Go to System => Content Modification Log - there is no "Delete" record for data item, just for media file only.

@mawtex @napernik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants