Description of the problem
When viewing the Control Panel logs at /admin.php?/cp/logs/cp, there is a keyword search input field. If you type something in there and hit enter to submit the form, it returns results correctly. But if you clear out that field and submit the form again, the keyword search autofills again on page load.
Initial page loads /admin.php?/cp/logs/cp:
Entering a search term loads /admin.php?/cp/logs/cp&perpage=25:
Deleting the search term and submitting the form loads /admin.php?/cp/logs/cp&filter_by_keyword=Created&perpage=25 - strangely, now the URL contains filter_by_keyword.
So it actually looks like the search results are correct, but the keyword search input field doesn't get cleared when you submit. So if you clear the field and submit the form, and then change some other setting (e.g. Show 25 -> 50), then the search term is used again.
How To Reproduce
Steps to reproduce the behavior:
- View the Control Panel logs at
/admin.php?/cp/logs/cp
- Type something into the Search input field and hit enter
- Delete the text from the Search input field and hit enter
- Now, the search results seem to have filtered correctly, but the search term you deleted is now back.
Environment Details:
Possible Solution
I suspect the cause of the issue is https://github.com/ExpressionEngine/ExpressionEngine/blob/7.dev/system/ee/ExpressionEngine/Controller/Logs/Cp.php#L89 because the URL contains the $_GET parameters already.
Description of the problem
When viewing the Control Panel logs at
/admin.php?/cp/logs/cp, there is a keyword search input field. If you type something in there and hit enter to submit the form, it returns results correctly. But if you clear out that field and submit the form again, the keyword search autofills again on page load.Initial page loads
/admin.php?/cp/logs/cp:Entering a search term loads
/admin.php?/cp/logs/cp&perpage=25:Deleting the search term and submitting the form loads
/admin.php?/cp/logs/cp&filter_by_keyword=Created&perpage=25- strangely, now the URL containsfilter_by_keyword.So it actually looks like the search results are correct, but the keyword search input field doesn't get cleared when you submit. So if you clear the field and submit the form, and then change some other setting (e.g. Show 25 -> 50), then the search term is used again.
How To Reproduce
Steps to reproduce the behavior:
/admin.php?/cp/logs/cpEnvironment Details:
Possible Solution
I suspect the cause of the issue is https://github.com/ExpressionEngine/ExpressionEngine/blob/7.dev/system/ee/ExpressionEngine/Controller/Logs/Cp.php#L89 because the URL contains the $_GET parameters already.