From 45f89d247b2b20779b6436b6165f1c33e595266a Mon Sep 17 00:00:00 2001 From: mescher <m.escher@adito.de> Date: Tue, 30 Jul 2019 08:57:12 +0200 Subject: [PATCH] fix empty Offer contentTitle --- .../entityfields/fulloffercode/valueProcess.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/entity/Offer_entity/entityfields/fulloffercode/valueProcess.js b/entity/Offer_entity/entityfields/fulloffercode/valueProcess.js index d39bcd7a3c..80bc199de9 100644 --- a/entity/Offer_entity/entityfields/fulloffercode/valueProcess.js +++ b/entity/Offer_entity/entityfields/fulloffercode/valueProcess.js @@ -1,5 +1,9 @@ +import("system.translate"); import("system.result"); import("system.vars"); -//a filedGroup cannot be placed in a table (filter-view) at the moment and therefore a separate field is needed: -result.string(vars.get("$field.OFFERCODE") + "-" + vars.get("$field.VERSNR")); +//a fieldGroup cannot be placed in a table (filter-view) at the moment and therefore a separate field is needed: +if(!vars.get("$field.OFFERCODE") && !vars.get("$field.VERSNR")) + result.string(translate.text("Offer")); +else + result.string(vars.get("$field.OFFERCODE") + "-" + vars.get("$field.VERSNR")); -- GitLab