Closed cube1us closed 4 years ago
The duplicates seem to be coming from this same form with the message "Added Via Card Location Block Reference". That should not be happening. It appears to happen when the same page is mentioned twice when adding a new card location chart block. (It is also implying it is adding them with a ZERO volume key - but that does not appear to be the case - that message is bogus.)
ZERO volume key part of message was bogus - the volume key may (or may not) be filled in. This message should only be present when it is not filled in.
The rest is in progress -- tricksy.
Fixes completed. (Note: it was actually possible to intentionally add a duplicate page using the EditCardLocationPageForm, so I was able to test the original issue, as well as test cases where this dialog was itself adding duplicate pages. I left EdtCardLocationPageForm as is - i.e. it is still possible to create duplicates that way. Also, EditDiagramPageForm and EditCableEdgeConnetionPageForm also allow adding such duplicates.
EditCardLocationForm should warn if more than one card location page found in the database for a given page name for a given machine. (Test to see what actually happens)