Skip to content

Commit

Permalink
#116 [Trigger] fix: display label in bold
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-micka committed Jun 27, 2024
1 parent 12ac60c commit 9139ed0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
foreach ($tmpArrayOfSubProducts as $subProdVal) {
$productChild = new Product($this->db);
$productChild->fetch($subProdVal[0]);
$concatDesc = dol_concatdesc($productChild->label,$productChild->description);
$concatDesc = dol_concatdesc('<b>' . $productChild->label . '</b>',$productChild->description);
$labelProductService = dol_concatdesc($labelProductService, $concatDesc);
}
$result = $object->setValueFrom('description', $labelProductService, '', '', '', '', $user, '', '');
if ($result<0) {
if ($result < 0) {
$this->error .= $object->error;
$this->errors[] = $object->error;
$this->errors = array_merge($this->errors, $object->errors);
Expand Down

0 comments on commit 9139ed0

Please sign in to comment.