mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 11:44:41 +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 (oldContainerId != model.ContainerId) {
|
||||||
if (commonPart != null) {
|
if (commonPart != null) {
|
||||||
var containerItem = _contentManager.Get(model.ContainerId, VersionOptions.Latest);
|
var containerItem = _contentManager.Get(model.ContainerId, VersionOptions.Latest);
|
||||||
commonPart.Record.Container = containerItem == null ? null : containerItem.Record;
|
commonPart.Container = containerItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
part.Weight = model.Weight;
|
part.Weight = model.Weight;
|
||||||
|
|||||||
Reference in New Issue
Block a user