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

Quick search submit is not working on multi server server > 1 #16738

Closed
Jay04653 opened this issue Mar 16, 2021 · 4 comments
Closed

Quick search submit is not working on multi server server > 1 #16738

Jay04653 opened this issue Mar 16, 2021 · 4 comments
Assignees
Labels
Bug A problem or regression with an existing feature
Projects
Milestone

Comments

@Jay04653
Copy link

Describe the bug

Try to use quick search:
image

See a result:
image

After press Enter to search session is broken and you have to refresh the page and logic again.

The issue on version 5.1.

@williamdes
Copy link
Member

Hi @Jay04653
Are you using a multi server setup and logged in a different server than the first one ?

@williamdes williamdes added question Used when we need feedback from the submitter or when the issue is a question about PMA Bug A problem or regression with an existing feature labels Mar 16, 2021
@Jay04653
Copy link
Author

@williamdes, yes, you are right.
I have 12 servers setup and have used not the first one.

@williamdes
Copy link
Member

@williamdes, yes, you are right.
I have 12 servers setup and have used not the first one.

Could you apply this change on js/dist/navigation.js and let me know if it works ?
My testing confirms that it works.

diff --git a/js/src/navigation.js b/js/src/navigation.js
index 2bb1a8fb0e..a6a245ba98 100644
--- a/js/src/navigation.js
+++ b/js/src/navigation.js
@@ -1574,7 +1574,7 @@ Navigation.FastFilter.Filter.prototype.request = function () {
         }
     }
     self.xhr = $.ajax({
-        url: 'index.php?route=/navigation&ajax_request=1',
+        url: 'index.php?route=/navigation&ajax_request=1&server=' + CommonParams.get('server'),
         type: 'post',
         dataType: 'json',
         data: params,

@williamdes williamdes self-assigned this Mar 16, 2021
@williamdes williamdes removed the question Used when we need feedback from the submitter or when the issue is a question about PMA label Mar 16, 2021
@williamdes williamdes added this to Needs triage in issues via automation Mar 16, 2021
@williamdes williamdes added this to the 5.1.1 milestone Mar 16, 2021
@williamdes williamdes moved this from Needs triage to Reproduced in issues Mar 16, 2021
@williamdes williamdes changed the title Quick search is not working [5.1] Quick search submit is not working on multi server server > 1 Mar 16, 2021
@Jay04653
Copy link
Author

@williamdes
I did it in the dist folder on production and yes, now it's working.
image

Thank you for the quick solution!

williamdes added a commit that referenced this issue Mar 16, 2021
Signed-off-by: William Desportes <williamdes@wdes.fr>
issues automation moved this from Reproduced to Closed Mar 20, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature
Projects
issues
  
Closed
Development

No branches or pull requests

2 participants