This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 240
Host search not saved when activate/desactivate a host #5711
Comments
Same thing when you modify the host |
I have the same issue. |
This is because the search form makes a POST request with 'searchH' as hostname key, but the disable/enable button makes a GET request with 'search' as the key. As a quick fix I replaced '$_POST["searchH"]' with '$_REQUEST["searchH"]' on lines 65, 66, 67 in /usr/share/centreon/www/include/configuration/configObject/host/listHost.php and replaced 'search' with 'searchH' on lines 272 and 274 in the same file (theese are the links of the disable/enable button) Hope this helps until the bug is fixed |
I prefer to use explicitly _GET and _POST instead of _REQUEST
|
Issue reproduced on a 2.8.16 version of Centreon. Applying the patch has fixed the issue. Looks good to me. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
1.<!--
If you are reporting a new issue, make sure that we do not have any duplicates already open. You
can ensure this by searching the issue list for this repository. If there is a duplicate, please
close your issue and add a comment to the existing issue instead.
If you think that your problem is a bug, please add a description organized like the BUG REPORT
INFORMATION shown below. If you can't provide all this information, it's possible that we will not
be able to debug and fix your problems, and so we will be obliged to close the ticket. Nevertheless,
You will be able to provide them later in order to reactivate it.
When we need more information, we will reply in order to ask some element in order. If you do not answer
in the next 30 days, the ticket will be automaticaly closed.
Thank you to describe your issue in English.
-->
BUG REPORT INFORMATION
Centreon Web version: 2.8.13
Centreon Engine version: 1.8.0
Centreon Broker version: 3.0.9
OS: CentOS 6 - Install from RPM
Additional environment details (AWS, VirtualBox, physical, etc.):
Steps to reproduce the issue:
Describe the results you received:
The search is lost
Describe the results you expected:
The search should be keep
Additional information you think important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: