Skip to content

Imported Queries have empty Query (template) field #17722

@Piedone

Description

@Piedone

Describe the bug

Importing a Query yields that the imported Query has an empty Query (template) field. This is the case also when exporting a Query from the Blog recipe.

Orchard Core version

Latest main (64e5538) has it, but was the case with 2.1.6 at latest.

To Reproduce

  1. Fresh Blog setup.
  2. Create Deployment Plan with only the All Queries step, and execute it. The resulting recipe will contain the default RecentBlogPosts SQL Query.
  3. Open the recipe, change the Query's Name property to ImportedRecentBlogPosts, and import it under JSON Import.
  4. Open the newly imported Query and observe that its Query field is empty, unlike that of the original Query's.

Interestingly, executing local recipes from the Recipes screen doesn't have this issue.

This affects Lucene and Elasticsearch Queries too.

Expected behavior

The Query field contains the previously exported value.

Logs and screenshots

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions