mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#18729: Fixing ContainableDriver to allow tokens to read the value
Work Item: 18729 --HG-- branch : 1.x
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Orchard.Core.Containers.Drivers {
|
||||
if (oldContainerId != model.ContainerId) {
|
||||
if (commonPart != null) {
|
||||
var containerItem = _contentManager.Get(model.ContainerId, VersionOptions.Latest);
|
||||
commonPart.Record.Container = containerItem == null ? null : containerItem.Record;
|
||||
commonPart.Container = containerItem;
|
||||
}
|
||||
}
|
||||
part.Weight = model.Weight;
|
||||
|
Reference in New Issue
Block a user