Skip to content
Snippets Groups Projects
Commit 52d9ef3c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

verify overlay type in frontend

parent 12c3451e
No related branches found
No related tags found
2 merge requests!925Merge 13.2.0,!921Resolve "MINERVANET - Error Report 106"
Pipeline #13331 passed
minerva (13.2.0) stable; urgency=medium
* Bug fix:search by drugs didn't check synonyms in chembl database
* Bug fix: search by drugs didn't check synonyms in chembl database
* Bug fix: verification of overlay type added (#917)
-- Piotr Gawron <piotr.gawron@uni.lu> Wed, 21 Aug 2019 17:00:00 +0200
......
......@@ -163,6 +163,9 @@ AddOverlayDialog.prototype.processFile = function (file) {
descriptionInput.value = overlay.getDescription();
}
if (overlay.getType() !== undefined) {
if ($("option[value='" + overlay.getType() + "']", typeSelect).length === 0) {
GuiConnector.warn("Invalid type: " + overlay.getType());
}
typeSelect.val(overlay.getType());
}
if (overlayParser.containsMixedNewLineCharacters(evt.target.result)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment