Skip to content
Snippets Groups Projects
Commit 21ec782e authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Salesproject: used wrong db columns in sql (onDBupdate)

parent ef4581a8
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
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