Skip to content
Snippets Groups Projects
Commit 735f3405 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

fix SqlBuilder Usages

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