From 85ae3365bee692d04bf47f9a45fa8c3d8c422854 Mon Sep 17 00:00:00 2001 From: fedoreno <fedoreno> Date: Thu, 10 Mar 2016 10:41:04 +0000 Subject: [PATCH] SSDM-3284: fixing dtos with missing fields/logic SVN: 35863 --- .../resources/api/v3/as/dto/common/update/FieldUpdateValue.js | 3 +++ .../resources/api/v3/as/dto/sample/create/SampleCreation.js | 1 + 2 files changed, 4 insertions(+) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/common/update/FieldUpdateValue.js b/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/common/update/FieldUpdateValue.js index d8dbb131524..d7807166bcd 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/common/update/FieldUpdateValue.js +++ b/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/common/update/FieldUpdateValue.js @@ -15,6 +15,9 @@ define([ "stjs" ], function(stjs) { * value for update */ prototype.setValue = function(value) { + if (this.value === value) { + return; + } this.value = value; this.isModified = true; }; diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/sample/create/SampleCreation.js b/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/sample/create/SampleCreation.js index c3d7d83d634..e20bef57ecb 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/sample/create/SampleCreation.js +++ b/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/sample/create/SampleCreation.js @@ -19,6 +19,7 @@ define([ "stjs" ], function(stjs) { prototype.childIds = null; prototype.attachments = null; prototype.creationId = null; + prototype.autoGeneratedCode = null; prototype.getTypeId = function() { return this.typeId; }; -- GitLab