diff --git a/entity/KeywordEntry_entity/recordcontainers/db/conditionProcess.js b/entity/KeywordEntry_entity/recordcontainers/db/conditionProcess.js index acdde11cb5f2224069e9a7b08564888005500445..a7b1817d1426dc408532af9e6dd94c4377644cf8 100644 --- a/entity/KeywordEntry_entity/recordcontainers/db/conditionProcess.js +++ b/entity/KeywordEntry_entity/recordcontainers/db/conditionProcess.js @@ -24,4 +24,4 @@ if (vars.getString("$param.WhitelistIds_param")) } //TODO: use a preparedCondition (.build instead of .toString) when available #1030812 #1034026 -result.string(cond.tostring()); +result.string(cond.toString()); diff --git a/process/Campaign_lib/process.js b/process/Campaign_lib/process.js index 598b0411b20cc51c62966a8a2be3269428bbf285..e8e13eb65bfcdf96a0a2eb05e38f363e97905ca2 100644 --- a/process/Campaign_lib/process.js +++ b/process/Campaign_lib/process.js @@ -446,7 +446,7 @@ CampaignUtils.copyCampaignSteps = function(pSourceCampaignId, pTargetCampaignId) { var InputMapping = { "CAMPAIGNSTEP": { - condition: newWhere("CAMPAIGN.CAMPAIGN_ID", pSourceCampaignId).orderBy("SORTING").toString(), + condition: newWhereIfSet("CAMPAIGN.CAMPAIGN_ID", pSourceCampaignId).orderBy("SORTING").toString("1=2", true), ValueMapping: { "CAMPAIGN_ID" : pTargetCampaignId } diff --git a/process/Offer_lib/process.js b/process/Offer_lib/process.js index 8940287ff658d189e7d3fbc0628fcc75bb9911e9..67df25ece2c052576b0181af92b3a4dd456ed8f9 100644 --- a/process/Offer_lib/process.js +++ b/process/Offer_lib/process.js @@ -331,7 +331,7 @@ OfferUtils.copyOfferItems = function (pSourceOfferId, pTargetOfferId) { var InputMapping = { "OFFERITEM": { - condition: newWhere("OFFERITEM.OFFER_ID", pSourceOfferId).orderBy("ITEMSORT").toString(), + condition: newWhereIfSet("OFFERITEM.OFFER_ID", pSourceOfferId).orderBy("ITEMSORT").toString("1=2", true), ValueMapping: { "OFFER_ID" : pTargetOfferId } diff --git a/process/Order_lib/process.js b/process/Order_lib/process.js index e75ed7697edc7bcf0075dc5b7a81fc3e4918af38..a2aa75f23165884c139dd9b920eb63b37f980af8 100644 --- a/process/Order_lib/process.js +++ b/process/Order_lib/process.js @@ -145,7 +145,7 @@ OrderUtils.copyOfferItemsToOrder = function (pOfferId, pOrderId) "INFO" : "INFO", "VAT" : "VAT" }, - condition: newWhere("OFFERITEM.OFFER_ID", pSourceOfferId).orderBy("ITEMSORT").toString(), + condition: newWhereIfSet("OFFERITEM.OFFER_ID", pSourceOfferId).orderBy("ITEMSORT").toString("1=2", true), ValueMapping: { "OFFER_ID" : pOrderId }