MantisBT - TestLink
View Issue Details
0008589TestLinkTest Execute - Edit notes & Custom Fieldspublic2019-03-07 09:182019-03-13 22:30
larsen1 
 
normalminoralways
newopen 
1.9.18 (2018 Q3) 
 
MariaDB
7.0
0008589: Pressing Enter in custom field reloads page
In Test Execution entering some value to a custom field and then pressing Enter empties all fields
1. Test Execution
2. Enter some Test Step data, execution status and Test Case Note
3. Enter data to a custom field, end with Enter button
4. Execution window reloads with all fields cleared
Test Step reload set:
$tlCfg->exec_cfg->exec_mode->new_exec='latest';
$tlCfg->exec_cfg->steps_exec_notes_default = 'latest';
No tags attached.
Issue History
2019-03-07 09:18larsen1New Issue
2019-03-07 20:19fmanNote Added: 0028576
2019-03-07 20:20fmanNote Edited: 0028576bug_revision_view_page.php?bugnote_id=28576#r5758
2019-03-13 14:41larsen1Note Added: 0028594
2019-03-13 22:30fmanNote Added: 0028599

Notes
(0028576)
fman   
2019-03-07 20:19   
(edited on: 2019-03-07 20:20)
please get latest code from github, do fresh install,retest & provide feedback

please provide a detailed example of custom fields used

(0028594)
larsen1   
2019-03-13 14:41   
Made a 1.9.19 clean without custom settings, same problem.
Custom fields used both in Test Specification and Execution. Both places have the problem.
Five CFs in Execution and two in Test Spec, all are strings, not required.
Zero or more in length creates the problem.
Used for serial number, program version, tools etc
Tab to next CF ok

Chrome, IE11 and Firefox all same
(0028599)
fman   
2019-03-13 22:30   
The issue does not seem related to the usage of custom fields, but to the use of input of type='submit'.

The solution seems to be to use input type='button'

(see https://stackoverflow.com/questions/895171/prevent-users-from-submitting-a-form-by-hitting-enter [^])