Skip to content

List sub incorrectly uses Node Type for Edge #224

@michael-doubez

Description

@michael-doubez

In "ogent/ogent/helper/list/sub", subtemplates are called on $.Type instead of $.Scope.Edge.Type:

{{- template "ogent/ogent/helper/list/paginate" $.Type -}}

It should be:

{{- template "ogent/ogent/helper/list/paginate" $.Scope.Edge.Type -}}
{{- if hasTemplate "ogent/ogent/helper/list/filter" }}{{ template "ogent/ogent/helper/list/filter" $.Scope.Edge.Type }}{{ end -}}

The current implementation makes it impossible to override the paginate and filter templates (without a workaround) when trying to use the actual type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions