-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
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:
- Create a record and a report with a datatable with subtables
- Open the report and search for something that you know is in a subtable
- Observe that only the rows in the main data table that have the relevant subtables are shown
- Click on the +-sign to load the subtable
- 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.