Skip to content
Snippets Groups Projects
Commit 12d1a962 authored by juanf's avatar juanf
Browse files

SSDM-5624 : Big logs bugfix

SVN: 38709
parent 99a2293e
No related branches found
No related tags found
No related merge requests found
...@@ -401,11 +401,11 @@ function SampleFormController(mainController, mode, sample) { ...@@ -401,11 +401,11 @@ function SampleFormController(mainController, mode, sample) {
var searchUntilFound = null; var searchUntilFound = null;
searchUntilFound = function() { searchUntilFound = function() {
mainController.serverFacade.searchWithIdentifiers([sampleIdentifierToOpen], function(data) { mainController.serverFacade.searchWithIdentifiers([sampleIdentifierToOpen], function(data) {
if(data && data.length === 1) { if(data && data.length > 0) {
mainController.changeView('showViewSamplePageFromPermId',data[0].permId); mainController.changeView('showViewSamplePageFromPermId',data[0].permId);
Util.unblockUI(); Util.unblockUI();
} else { //Recursive call } else { // Recursive call, only if not found yet due to reindexing
searchUntilFound(); setTimeout(searchUntilFound, 100);
} }
}); });
} }
......
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