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

SSDM-2033 : Implement incremental sample number generator by sample type.

SVN: 34280
parent 81cb5bb4
No related branches found
No related tags found
No related merge requests found
......@@ -262,7 +262,7 @@ function ServerFacade(openbisServer) {
//
this.generateCode = function(sampleType, action) {
this.openbisServer.countNumberOfSamplesForType(sampleType.code, function(response) {
if(response.result) {
if(response.result || response.result === 0) {
action(sampleType.codePrefix + "_" + (parseInt(response.result) + 1));
}
});
......
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