diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/dataset/search/DataSetSearchCriteria.js b/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/dataset/search/DataSetSearchCriteria.js index 140ef89a188e87a85b47574270259893e497f96e..440de62d37790b8ad2e6acf79deccb32a062d810 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/dataset/search/DataSetSearchCriteria.js +++ b/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/dataset/search/DataSetSearchCriteria.js @@ -27,7 +27,8 @@ define([ "require", "stjs", "as/dto/common/search/AbstractEntitySearchCriteria", }; prototype.withoutExperiment = function() { var NoExperimentSearchCriteria = require("as/dto/experiment/search/NoExperimentSearchCriteria"); - return this.addCriteria(new NoExperimentSearchCriteria()); + this.addCriteria(new NoExperimentSearchCriteria()); + return this; }; prototype.withSample = function() { var SampleSearchCriteria = require("as/dto/sample/search/SampleSearchCriteria"); @@ -35,7 +36,8 @@ define([ "require", "stjs", "as/dto/common/search/AbstractEntitySearchCriteria", }; prototype.withoutSample = function() { var NoSampleSearchCriteria = require("as/dto/sample/search/NoSampleSearchCriteria"); - return this.addCriteria(new NoSampleSearchCriteria()); + this.addCriteria(new NoSampleSearchCriteria()); + return this; }; prototype.withOrOperator = function() { return this.withOperator(SearchOperator.OR); diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/sample/search/SampleSearchCriteria.js b/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/sample/search/SampleSearchCriteria.js index 6992f4a362e2dc65d1321d1c14862de8c065d716..0edde5cda3d141525e60ecc2521e45596ad4c43b 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/sample/search/SampleSearchCriteria.js +++ b/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/sample/search/SampleSearchCriteria.js @@ -23,7 +23,8 @@ define([ "require", "stjs", "as/dto/common/search/AbstractEntitySearchCriteria", }; prototype.withoutExperiment = function() { var NoExperimentSearchCriteria = require("as/dto/experiment/search/NoExperimentSearchCriteria"); - return this.addCriteria(new NoExperimentSearchCriteria()); + this.addCriteria(new NoExperimentSearchCriteria()); + return this; }; prototype.withParents = function() { return this.addCriteria(new SampleParentsSearchCriteria()); @@ -36,7 +37,8 @@ define([ "require", "stjs", "as/dto/common/search/AbstractEntitySearchCriteria", }; prototype.withoutContainer = function() { var NoSampleContainerSearchCriteria = require("as/dto/sample/search/NoSampleContainerSearchCriteria"); - return this.addCriteria(new NoSampleContainerSearchCriteria()); + this.addCriteria(new NoSampleContainerSearchCriteria()); + return this; }; prototype.withListableOnly = function() { var OnlyListableSearchCriteria = require("as/dto/sample/search/OnlyListableSearchCriteria");