Closed kvesik closed 6 months ago
Good place to start: in the RelationSpecificationPanel.clear()
function...
self.clear_group_buttons(self.contact_group)
misses the "Other" text. clear_x_options()
is an example of how to deal with both the radio buttons and the text.
Context
There are two ways to create a Relation Module: Case 1: From the Sign menu on the main screen
Case 2: From the "Save and add associated Relation module" button at the bottom of a Location or a Movement specification dialog.
In case 1 (from main window), the Relation specification dialog will open completely empty, with no pre-populated values. In case 2 (from anchor Location or Movement module), the Relation specification dialog will open with timing, X, and Y pre-populated based on info from the anchor module.
Expected behaviour
After adding or changing info in the Relation specification dialog, if the user clicks "Save and add another" the Relation specification dialog should refresh to the same state that it was in when it was first opened (whether completely empty, as in case 1, or pre-populated with the same data that was there in case 2).
Bug
However, there are a few pieces of Relation module data that do not get correctly cleared/refreshed:
Any text that was entered in the "Other" text box in the Contact section:
Checkboxes for X and Y crossed or linked, in Direction box:
Any hand, arm, or leg parts that were specified in the Body parts section. The button(s) appear bolded, showing that they have stored info, whose details are available if the button is clicked.