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
insert_rows keypress Enter behavior #14401
Comments
|
Have you tried defocusing that textbox?? It works. Maybe it shouldn't or maybe they have made it that way, if yes, then the action on pressing enter could be disabled. OR action on defocusing could be disabled and it will work only on pressing enter. |
|
As said I defocused (which triggers the blur event) the field, which gives me the extra record insertions. |
|
@kampalex I had this issue ! |
|
Issue still appears in PMA 4.8.3 (under PHP 7.2.12). ...dived into it @williamdes This is probably because of missing 'global $db;' (or not used $GLOBALS['db'] as used in other files, or it doesn't exists yet) in db_table_exists.inc.php. But when I global it, it does (in this issue) lead to more failures due to missing table variable. When also declaring table as global, more issues occur due expected variables. Stopped there... I still suggest to implement the already provided mentioned 'JS [Enter] triggers keypress' for this field. Fixing in PHP costs more efforts (but maybe this can be a kind of treasure hunt for more bugs/unwanted behavior). Origin of issue is 'different input value of insert_rows', which includes the 'tbl_change.php' file. |
…event to ENTER key on add new field Signed-off-by: Saurabh Srivastava <saurabhsrivastava312@gmail.com>
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
In-page extension of insertable records, like the blur event
Actual behaviour
Message shows: 'No databases selected'
Click on table name (at top)
Message appears:
Notice in ./libraries/db_table_exists.inc.php#20
Undefined variable: db
Backtrace
./tbl_change.php#25: require_once(./libraries/db_table_exists.inc.php)
./libraries/classes/InsertEdit.php#2147: include(./tbl_change.php)
./tbl_replace.php#55: PhpMyAdmin\InsertEdit->isInsertRow()
Click on table again and issue disappears
Server/Client configuration
Ubuntu 18.04
Apache/2.4.29
MariaDB 10.1.29
PHP 7.2.5
phpMyAdmin 4.8.1
Google Chrome 69.0.3452.0 dev x64
The text was updated successfully, but these errors were encountered: