#18729: Fixing ContainableDriver to allow tokens to read the value

Work Item: 18729

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-06-29 17:16:29 -07:00
parent 5a4cc39b97
commit c894e8c7cb

View File

@@ -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;