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
The char/varchar textarea minimum height is incorrectly fixed to 7 rows #16935
Comments
|
Bonjour @setaou Thank you so much for the detailed report you made ! |
|
Nice, I will have a look ;) |
|
I think, At libraries/classes/InsertEdit.php instead of It is because max function returns maximum of two values so it will always return 7 and will not respect $cfg['CharTextareaRows'] = 2; So we need to supply first argument 2 and second argument $cfg['CharTextareaRows']. |
Signed-off-by: Saksham Gupta <shucontech@gmail.com>
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
Hi @setaou |
|
Hi William, |


Describe the bug
The char/varchar textarea minimum height is incorrectly fixed to 7 rows
To Reproduce
$cfg['CharTextareaRows'], like for instance 2 (which is supposed to be the default, according to the documentation)Expected behavior
The textarea height is supposed to respect the
$cfg['CharTextareaRows']config option.Additional context
The issue is located at https://github.com/phpmyadmin/phpmyadmin/blob/master/libraries/classes/InsertEdit.php#L584 and has been introduced by PR #14379.
Here we can see
$textAreaRows = max($GLOBALS['cfg']['CharTextareaRows'], 7);, which actually sets the lower boundary of CharTextareaRows to 7.The text was updated successfully, but these errors were encountered: