Skip to content

Searching recursively in sub-tables does not always work as expected  #10292

@phoob

Description

@phoob

Hello!

I have created a report with subtables, which are loaded by a separate report (not $this->actionToLoadSubTables = $this->action;). I want to be able to search the datatable recursively (by setting $view->config->search_recursive = true; in configureview), but when I do this, and search for something in a subtable, the wrong subtable is loaded when I try to expand it.

I have noticed that other reports (such as those generated by the Events plugin and the Keyword report in the Referrer plugin) do not search recursively. Is this not possible? It would be useful if it was. The steps to reproduce, when using my plugin, are:

  1. Create a record and a report with a datatable with subtables
  2. Open the report and search for something that you know is in a subtable
  3. Observe that only the rows in the main data table that have the relevant subtables are shown
  4. Click on the +-sign to load the subtable
  5. Observe that a different subtable is loaded – not the one that is stored as the subtable for that row

The thing is I am not sure if this is a bug or if I am doing something wrong. Looking forward to any kind of response :)

I would gladly supply some code, but the plugin depends on specific event actions in the database, so I'm afraid that won't do any good.

Metadata

Metadata

Assignees

Labels

BugFor errors / faults / flaws / inconsistencies etc.not-in-changelogFor issues or pull requests that should not be included in our release changelog on matomo.org.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions