Skip to content

Fix #19338 - Add missing length validation when changing column type#20267

Merged
williamdes merged 1 commit intophpmyadmin:masterfrom
predictor2718:fix/19338-validate-length-on-change
Apr 9, 2026
Merged

Fix #19338 - Add missing length validation when changing column type#20267
williamdes merged 1 commit intophpmyadmin:masterfrom
predictor2718:fix/19338-validate-length-on-change

Conversation

@predictor2718
Copy link
Copy Markdown
Contributor

Description

  • The "Change column" form didn't load table/structure.js, so the client-side length validation never fired
  • Added the missing script to ChangeController, matching what AddFieldController already does

Fixes #19338.

…lumn type

Signed-off-by: Nicolai Ehrhardt <245527909+predictor2718@users.noreply.github.com>
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@williamdes williamdes self-assigned this Apr 9, 2026
@williamdes williamdes added this to the 6.0.0 milestone Apr 9, 2026
Copy link
Copy Markdown
Member

@williamdes williamdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this bug !

@williamdes williamdes merged commit 2cb227f into phpmyadmin:master Apr 9, 2026
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'Please enter a valid length!' doesn't show up when changing existing column

2 participants