Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ajax_search.php: Fix & amend broken $num_ports query on line 83 #11013

Merged
merged 1 commit into from Jan 8, 2020
Merged

ajax_search.php: Fix & amend broken $num_ports query on line 83 #11013

merged 1 commit into from Jan 8, 2020

Conversation

josephtingiris
Copy link
Contributor

  • When searching from the web interface, librenms produces
    production.ERROR SQLSTATE: Column not found: 1054 Unknown column
    '$perms_sql' in 'where clause'

  • Above feeds resources/views/layouts/menu.blade.php which, because
    of the failed query, has no device_ports as a value. Thus the search
    results do not produce the expected 'name ... device with X port(s)'

  • As well, the previous query did not exclude deleted and ignored
    ports. Therefore, the value for X port(s) was incorrect and did not
    correspond to the device's ports screen.

* When searching from the web interface, librenms produces
production.ERROR SQLSTATE: Column not found: 1054 Unknown column
'$perms_sql' in 'where clause'

* Above feeds resources/views/layouts/menu.blade.php which, because
of the failed query, has no device_ports as a value. Thus the search
results do not produce the expected 'name ... device with X port(s)'

* As well, the previous query did not exclude deleted and ignored
ports. Therefore, the value for X port(s) was incorrect and did not
correspond to the device's ports screen.
@kkrumm1 kkrumm1 merged commit 13c6309 into librenms:master Jan 8, 2020
@murrant
Copy link
Member

murrant commented Feb 4, 2020

This pull request has been mentioned on LibreNMS Community. There might be relevant details there:

https://community.librenms.org/t/v1-60-release-changelog-january-2020/10863/1

@lock lock bot locked as resolved and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants