This project is read-only.
1
Vote

Wrong model type passed to Parts/LayoutSelector.cshtml

description

On line 75 of Drivers/LayoutSelectorPartDriver.cs, the part is being set as the model, however the template expects an instance of LayoutSelectorPartEditViewModel. This will cause a runtime error. This should be fixed by setting the local variable 'model' as the model as opposed to 'part':

// Editor display factory
        return ContentShape("Parts_LayoutSelector_Edit",
                 () => shapeHelper.EditorTemplate(
                     TemplateName: "Parts/LayoutSelector",
                     Model: model,
                     Prefix: Prefix));

comments