@@ -1860,7 +1860,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '';
// Batch number managment
- if ($conf->productbatch->enabled) {
+ if (!empty($conf->productbatch->enabled)) {
if ($object->isProduct() || !empty($conf->global->STOCK_SUPPORTS_SERVICES)) {
print '| '.$langs->trans("ManageLotSerial").' | ';
$statutarray = array('0' => $langs->trans("ProductStatusNotOnBatch"), '1' => $langs->trans("ProductStatusOnBatch"), '2' => $langs->trans("ProductStatusOnSerial"));
@@ -1964,7 +1964,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print ' |
| '.$langs->trans("Description").' | ';
// We use dolibarr_details as type of DolEditor here, because we must not accept images as description is included into PDF and not accepted by TCPDF.
- $doleditor = new DolEditor('desc', $object->description, '', 160, 'dolibarr_details', '', false, true, $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC, ROWS_4, '90%');
+ $doleditor = new DolEditor('desc', $object->description, '', 160, 'dolibarr_details', '', false, true, !empty($conf->global->FCKEDITOR_ENABLE_PRODUCTDESC)?$conf->global->FCKEDITOR_ENABLE_PRODUCTDESC:0, ROWS_4, '90%');
$doleditor->Create();
print " |
";
From fcc23909b32995e0c278d31bcafab6ee19e5e0bd Mon Sep 17 00:00:00 2001
From: BENKE Charlene <1179011+defrance@users.noreply.github.com>
Date: Mon, 20 Jun 2022 15:39:11 +0200
Subject: [PATCH 3/4] Update card.php
---
htdocs/product/stock/card.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/htdocs/product/stock/card.php b/htdocs/product/stock/card.php
index 8231be30d0c..009bc70ebb2 100644
--- a/htdocs/product/stock/card.php
+++ b/htdocs/product/stock/card.php
@@ -314,7 +314,7 @@ if ($action == 'create') {
$langs->load('projects');
print '| '.$langs->trans('Project').' | ';
print img_picto('', 'project').$formproject->select_projects(($socid > 0 ? $socid : -1), $projectid, 'projectid', 0, 0, 1, 1, 0, 0, 0, '', 1, 0, 'maxwidth500');
- print ' ';
+ print ' ';
print ' |
';
}
@@ -854,7 +854,7 @@ if ($action == 'create') {
$langs->load('projects');
print '| '.$langs->trans('Project').' | ';
print img_picto('', 'project').$formproject->select_projects(($socid > 0 ? $socid : -1), $projectid, 'projectid', 0, 0, 1, 1, 0, 0, 0, '', 1, 0, 'maxwidth500');
- print ' id.($fac_rec ? '&fac_rec='.$fac_rec : '')).'">';
+ print ' 0 ? '&socid='.$socid : "")).'">';
print ' |
';
}
From 88cab8b8e7745ee86526fc7e0bac31b9899050e9 Mon Sep 17 00:00:00 2001
From: BENKE Charlene <1179011+defrance@users.noreply.github.com>
Date: Mon, 20 Jun 2022 15:41:19 +0200
Subject: [PATCH 4/4] Update card.php
---
htdocs/product/stock/card.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/htdocs/product/stock/card.php b/htdocs/product/stock/card.php
index 009bc70ebb2..3ef85adeb84 100644
--- a/htdocs/product/stock/card.php
+++ b/htdocs/product/stock/card.php
@@ -314,7 +314,7 @@ if ($action == 'create') {
$langs->load('projects');
print '| '.$langs->trans('Project').' | ';
print img_picto('', 'project').$formproject->select_projects(($socid > 0 ? $socid : -1), $projectid, 'projectid', 0, 0, 1, 1, 0, 0, 0, '', 1, 0, 'maxwidth500');
- print ' ';
+ print ' ';
print ' |
';
}