Skip to content

Resetting filters when persistent table is enabled #5738

Open
@jargoud

Description

@jargoud

Bug report

What I did:

When persistent table is enabled in configuration (backpack.operations.list.persistentTable = true), after typing terms in the search field, I want to reset the filters to clear the field.

What I expected to happen:

After a click on reset link, the field is cleared.

What happened:

After a click on reset link, the field is not cleared.

What I've already tried to fix it:

The package defines the crud route as follows:

$this->crud->setRoute(backpack_url('user'));

It leads to a local storage key looking like:

httpmy-laravellocalhost8000adminuser_list_url

If I change this into:

CRUD::setRoute(config('backpack.base.route_prefix') . '/user');

The local storage key is now:

adminuser_list_url

and the reset button works.

I am not sure if that issue should be created here or in Backpack core project.

Backpack, Laravel, PHP, DB version:

PHP VERSION:

8.3.14

PHP EXTENSIONS:

Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, FFI, fileinfo, filter, ftp, gd, gettext, gmp, json, iconv, intl, SPL, ldap, mbstring, session, standard, odbc, pcntl, exif, mysqlnd, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, random, readline, Reflection, mysqli, shmop, SimpleXML, soap, sockets, sodium, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, rdkafka, imagick, redis, Zend OPcache

LARAVEL VERSION:

11.35.1.0

BACKPACK PACKAGE VERSIONS:

backpack/basset: 1.3.6
backpack/crud: 6.7.43
backpack/generators: v4.0.7
backpack/medialibrary-uploaders: 1.2.1
backpack/permissionmanager: 7.2.1
backpack/pro: 2.2.29
backpack/settings: 3.1.1
backpack/theme-tabler: 1.2.15

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions