Closed laceysanderson closed 6 months ago
I noticed the same thing with the column header validation in #48. As such this is more to do with the form itself and independent of the validator plugin. To fix you likely need ajax on the file upload field that resets the validation when a new file is uploaded.
Bug confirmed and reproducible.
Drupal Version
10.1
Tripal Version
4.x dev (most recent commit)
Module Version
4.x dev (most recent commit)
Site Operating System
Debian Linux
Installation Method
TripalDocker docker
Browsers
Firefox
Observations
I tested the Pheno Share importer within the same page session due in part to laziness and in part since this is how a curator might function (import file, get error, immediately import another fixed file into the same form). However, I started with a file that did pass validation and then followed up with one that should not. In this case, the second file did not show validation error!
This was not enough to stop the PR I was reviewing since the order is not what you would expect from a user... but it should be addressed as it can happen in this order if a user passes validation and then sees traits they didn't expect in the next step of the form and wants to re-upload the newest version.
Expected Behaviour
I expected to see the same error message in these two cases:
Steps to Reproduce
Relevant log output
No response