Skip to content

Sort Taxonomies Terms failed when parent not found in paginated view #6795

@pacomonfort

Description

@pacomonfort

Orchard 1.10 on March 18th
If you add new Taxonomy with this terms

a;a
b;b
c;c
c1;c1
c2;c2
c3;c3
c4;c4
c5;c5
c6;c6
c7;c7
c8;c8
c9;c9
c10;c10
c11;c11
d;d

When you view the terms of that Taxonomy paginated to 10 , the second page fails.

The bug is in the compare method of TermPart.cs, in

                if (!xFullPath.Equals(yFullPath, StringComparison.OrdinalIgnoreCase)) {
                    var xParent = _index[xFullPath]; <---- Here, when _index not contains xFullPath
                    var yParent = _index[yFullPath];

                    return Compare(xParent, yParent);
                }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions