phpmyadmin / phpmyadmin/phpmyadmin

Create view button doesn't unbind jQuery events

Open
#18,104 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

affects/6.0 Bug confirmed/6.0
Dominant language
PHP
Stars
7.9k
Forks
3.6k
Avg merge
4d 18h
Merged PRs (30d)
36

Description

Describe the bug

When a user clicks on create view button, the system presents a dialog modal which binds actions to ok/cancel buttons. Upon submitting the modal, the page does not refresh and clicking it again causes the backend to be hit twice.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Table >> Browse
  2. Click on 'Create view'
  3. Enter a valid name and submit
  4. Go back to step 2 and repeat
Expected behavior

I expect to see only one request to backend for every consecutive submission without complete page refresh.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the Table > Browse “Create view” flow and reproduce consecutive submissions to observe the duplicate backend request. Inspect the modal’s jQuery event binding around the create-view submission; done means each submission sends only one request without a complete page refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
jquery
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.