Skip to content

Text field has wrong value after error while editing #175

@errael

Description

@errael

To reproduce:

  1. Modify demo schema supplier_data to add not NULL
    status SMALLINT not NULL
  2. Run Example 1, click on 1st records status field, cursor after 20, make sure entire field not selected
  3. Enter backspace, see 2 in status field
  4. Enter backspace, get dialog Null values are not allowed for STATUS, press OK
    Observe status field is blank
  5. Click Next Record, then Prev Record
    Observe status field shows 2, which has been committed to the database.

Note: after the error popup, pressing undo puts 20 in the text field.

This is unexpected. At a minimum, after the error dialog, 2 should be shown in the text field.
Other possibilities include highlighting the field as an error, disabling all buttons until there's a valid entry.

This is related to #15; that issue is primarily about creating a new record.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions