mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 09:42:29 +08:00
Fixing PR #8041 compilation error
Updating QueryElementDriver.cs fixes #8039
This commit is contained in:
committed by
Sipke Schoorstra
parent
7ea9caa9f8
commit
1bd517bc66
@@ -185,13 +185,13 @@ namespace Orchard.DynamicForms.Drivers {
|
||||
context.Element.Data.Add("QueryElementIdentity", _contentManager.GetItemMetadata(queryContentItem).Identity.ToString());
|
||||
}
|
||||
|
||||
protected override void OnImported(Query element, ImportElementContext context) {
|
||||
protected override void OnImportCompleted(Query element, ImportElementContext context) {
|
||||
base.OnImported(element, context);
|
||||
if (!context.Element.Data.Keys.Contains("QueryElementIdentity"))
|
||||
return;
|
||||
var queryIdentifier = context.Element.Data["QueryElementIdentity"];
|
||||
var queryContentItem = context.Session.GetItemFromSession(queryIdentity).Content;
|
||||
if (queryIdentityPart == null)
|
||||
var queryContentItem = context.Session.GetItemFromSession(queryIdentifier).Content;
|
||||
if (queryContentItem == null)
|
||||
return;
|
||||
element.QueryId = queryContentItem.ContentItem.Id;
|
||||
if (!context.Element.Data.Keys.Contains("QueryId"))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.26206.0
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Modules", "Modules", "{E9C9F120-07BA-4DFB-B9C3-3AFB9D44C9D5}"
|
||||
EndProject
|
||||
|
||||
Reference in New Issue
Block a user