Commit 44867ebf authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '1541-clear-chemicals' into 'devel_16.0.x'

clear chemicals don't show warning when no disease ID defined

See merge request !1342
parents a63f3e8e 710e802b
Pipeline #46817 passed with stage
in 35 minutes and 49 seconds
......@@ -4,6 +4,7 @@ minerva (16.0.0~beta.2) stable; urgency=medium
* Bug fix: search chemicals by target returned chemicals not bounded by
disease (#1535)
* Bug fix: problem with export map with submaps fixed (#1540)
* Bug fix: clear does not show warning about missing disease ID (#1541)
* Bug fix: removing user removed backgrounds in projects created by user
(#1527)
* Bug fix: removing background did not remove images from server (#1526)
......
......@@ -47,7 +47,9 @@ ChemicalDbOverlay.prototype.getElementsByQueryFromServer = function (param) {
if (self.getMap().getProject().getDisease() !== undefined && self.getMap().getProject().getDisease() !== null) {
return ServerConnector.getChemicalsByQuery(param);
} else {
GuiConnector.warn("Cannot search for chemicals in a project without defined disease.");
if (param.query !== "") {
GuiConnector.warn("Cannot search for chemicals in a project without defined disease.");
}
return Promise.resolve([]);
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment