zabbix-module-latest-data icon indicating copy to clipboard operation
zabbix-module-latest-data copied to clipboard

Filter by name don't work after update to version 6.4.3

Open dd-everstake opened this issue 1 year ago • 1 comments

Hi there! After update out zabbix we have problem with latest data module. Filter by name don't work, and show all info as without filter by name. All other filters work well. Function wrap by tag don't work correct to. Avery time after autoupdate page all manually wrapped tags unwrap to default state.

dd-everstake avatar Jun 23 '23 13:06 dd-everstake

Any updates?

dd-everstake avatar Jun 29 '23 15:06 dd-everstake

This is caused by the file "actions/CControllerBGLatestView.php" on line 226 (I am using tag 3.0.1 for Zabbix 6.4.X)

The file references 'name' as the input field in the filter where as 'filter_select' is the correct input field when you inspect the html.

Incorrect:

            if ($this->hasInput('name')) {
                    $filter_name = $this->getInput('name');
            } else {
                    $filter_name = '';

Correct:

            if ($this->hasInput('filter_select')) {
                    $filter_name = $this->getInput('filter_select');
            } else {
                    $filter_name = '';

I made the above modifications and it carries over the items selected by name...

jamescook000 avatar Jun 06 '24 11:06 jamescook000

Fixed in https://github.com/BGmot/zabbix-module-latest-data/tree/v3.0.2 Thanks for reporting and help with fixing filtering!

BGmot avatar Jun 13 '24 02:06 BGmot