From 9c3a38236d755d29c4dc276136efaf6f6618a46c Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Sat, 6 Oct 2012 09:55:22 -0700 Subject: [PATCH] #19069: Preventing the owner to be changed when hiding the Own Editor Work Item: 19069 --HG-- branch : 1.x --- src/Orchard.Web/Core/Common/OwnerEditor/OwnerEditorDriver.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Orchard.Web/Core/Common/OwnerEditor/OwnerEditorDriver.cs b/src/Orchard.Web/Core/Common/OwnerEditor/OwnerEditorDriver.cs index efcd4d906..13ca214e2 100644 --- a/src/Orchard.Web/Core/Common/OwnerEditor/OwnerEditorDriver.cs +++ b/src/Orchard.Web/Core/Common/OwnerEditor/OwnerEditorDriver.cs @@ -42,7 +42,9 @@ namespace Orchard.Core.Common.OwnerEditor { var settings = part.TypePartDefinition.Settings.GetModel(); if (!settings.ShowOwnerEditor) { - part.Owner = currentUser; + if (part.Owner == null) { + part.Owner = currentUser; + } return null; }