mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#20365: Fixing that a MediaLibraryPickerField looses its value(s) if an other editor group is updated
Work Item: 20365
This commit is contained in:
@@ -51,7 +51,7 @@ namespace Orchard.MediaLibrary.Drivers {
|
||||
}
|
||||
|
||||
protected override DriverResult Editor(ContentPart part, Fields.MediaLibraryPickerField field, IUpdateModel updater, dynamic shapeHelper) {
|
||||
var model = new MediaLibraryPickerFieldViewModel();
|
||||
var model = new MediaLibraryPickerFieldViewModel { SelectedIds = string.Join(",", field.Ids) };
|
||||
|
||||
updater.TryUpdateModel(model, GetPrefix(field, part), null, null);
|
||||
|
||||
|
Reference in New Issue
Block a user