Skip to content

Related to #3018 #3656

@danisiz

Description

@danisiz

Using pods templates I get correct relationship list using {@related_field}, but does not work [each related_field][/each]
At local, i resolve this replacing in file
pods/components/Templates/includes/functions-view_template.php, line 263

            if ( isset( $entry[ 'ID' ] ) ) {
                $target_id = $entry[ 'ID' ];            
            } elseif ( isset( $entry[ 'term_id' ] ) ) {
                $target_id = $entry[ 'term_id' ];
            }

by:

            if ( isset( $entry[ 'ID' ] ) ) {
                $target_id = $entry[ 'ID' ];
            } elseif ( isset( $entry[ 'id' ] ) ) {
                $target_id = $entry[ 'id' ];                    
            } elseif ( isset( $entry[ 'term_id' ] ) ) {
                $target_id = $entry[ 'term_id' ];
            }

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