Clear-Bible / ClearDashboard

The ClearDashboard project
Other
1 stars 2 forks source link

[BUG]: Translation Dialog: Deleting a Lexicon Translation that has been Applied results in an error #777

Closed romanpoz closed 11 months ago

romanpoz commented 1 year ago

Description:

Translation Dialog: Deleting a Lexicon Translation that has been Applied results in an error

Steps To Reproduce:

Pre-Condition: Interlinear display is loaded in an Enhanced View.

Steps to reproduce the behavior:

  1. In an Interlinear display, open the Translation dialog for a target word.
  2. In the Translation dialog, Add Lexeme
  3. Add a new Meaning, eg Meaning1
  4. Enter Translation for that meaning, eg LexiconTranslation1 (Enter to finish)
  5. Select the radio button for that Translation.
  6. (optional) Uncheck the "Change all unset occurrences" CheckBox
  7. Apply Translation
  8. Open the Translation dialog for the newly translated word
  9. In the Translation dialog, delete the selected Translation

Expected Results:

The translation value remains the same. The translation type is changed from Lexicon to User-entered.

Actual Results:

DbUpdateException (see details in the screenshot)

Additional Details:

image

Found in Version:

1.1.0.3

Fixed in Version:

1.2.0.7

Test Cases:

(Linked Test Cases)

morleycb commented 1 year ago

API/Data model fix merged into DEV from LexiconImport branch on 9/26/2023. NOTE: the UX for this scenario may still need to be improved - if so, this can be assigned to Andy.

romanpoz commented 11 months ago

Test passed in 1.2.0.17.