From 21ec782eb2da1ea25821fc2ef081a20196415833 Mon Sep 17 00:00:00 2001 From: "j.goderbauer" <j.goderbauer@adito.de> Date: Wed, 29 Jan 2020 09:47:48 +0100 Subject: [PATCH] Salesproject: used wrong db columns in sql (onDBupdate) --- entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js b/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js index ee7d781f7a1..3cfb1b47bac 100644 --- a/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js +++ b/entity/Salesproject_entity/recordcontainers/db/onDBUpdate.js @@ -44,8 +44,8 @@ vars.get("$local.changed").forEach(function(fieldName) { else if (state == $KeywordRegistry.salesprojectState$order()) { // set all competitions of the salesproject to lost - newWhere("OFFER.OBJECT_ROWID", "$local.uid") - .and("OFFER.OBJECT_TYPE", ContextUtils.getCurrentContextId()) + newWhere("COMPETITION.OBJECT_ROWID", "$local.uid") + .and("COMPETITION.OBJECT_TYPE", ContextUtils.getCurrentContextId()) .updateData(true, "COMPETITION", ["STATUS"], null, [$KeywordRegistry.competitionState$lost()]); _updateReasons(); -- GitLab