Skip to content

PodsUI not taking params when generating the sort-links #4625

@hcarsten

Description

@hcarsten

<a href="<?php echo esc_url_raw( pods_query_arg( array( 'orderby' . $this->num => $field, 'orderby_dir' . $this->num => $dir ), array( 'limit' . $this->num, 'search' . $this->num, 'pg' . $this->num, 'page' ), $this->exclusion() ) ); ?>"> <span><?php echo esc_html( $attributes[ 'label' ] ); ?></span> <span class="sorting-indicator"></span> </a>

I found a bug in PodsUI.php, here links to the sort/order are created. the function pods_query_arg is getting the arg “$allows” which does not take the $_GET params in consideration defined by an “advanced filter”.

The fast solution would be to set the parameter $allow to array()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions