Skip to content

DefaultContentManager.GetAsync(IEnumerable<string> contentItemIds) always updates documents in database  #16741

@frank1422

Description

@frank1422

When calling GetAsync(IEnumerable<string> contentItemIds) on DefaultContentManager it seems like all retrieved documents are updated in the database.

It happens for OrchardCore 2.0.0 (also for older versions when called with VersionOptions.Published)

I would expect that the documents are not updated, which is the case when calling GetAsync(string contentItemId) for each id.

Should

// We save the previous version further because this call might do a session query.
await _session.SaveAsync(item, checkConcurrency: true);

be inside

if (options.IsDraftRequired) {}

as in GetAsync(string contentItemId)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions