attributes[$object->table_element]['required'][$key])) print ' fieldrequired';
print '">';
if (!empty($extrafields->attributes[$object->table_element]['help'][$key])) print $form->textwithpicto($langs->trans($label), $langs->trans($extrafields->attributes[$object->table_element]['help'][$key]));
@@ -161,6 +175,7 @@ if (empty($reshook) && is_array($extrafields->attributes[$object->table_element]
//print 'x'.$object->array_options['options_' . $key].'-'.$datenotinstring.' - '.dol_print_date($datenotinstring, 'dayhour');
$value = isset($_POST["options_".$key]) ? dol_mktime($_POST["options_".$key."hour"], $_POST["options_".$key."min"], 0, $_POST["options_".$key."month"], $_POST["options_".$key."day"], $_POST["options_".$key."year"]) : $datenotinstring;
}
+
//TODO Improve element and rights detection
if ($action == 'edit_extras' && $permok && GETPOST('attribute', 'none') == $key)
{
diff --git a/htdocs/langs/en_US/modulebuilder.lang b/htdocs/langs/en_US/modulebuilder.lang
index b815cf997cc..135ac1ae9ec 100644
--- a/htdocs/langs/en_US/modulebuilder.lang
+++ b/htdocs/langs/en_US/modulebuilder.lang
@@ -83,7 +83,7 @@ ListOfDictionariesEntries=List of dictionaries entries
ListOfPermissionsDefined=List of defined permissions
SeeExamples=See examples here
EnabledDesc=Condition to have this field active (Examples: 1 or $conf->global->MYMODULE_MYOPTION)
-VisibleDesc=Is the field visible ? (Examples: 0=Never visible, 1=Visible on list and create/update/view forms, 2=Visible on list only, 3=Visible on create/update/view form only (not list), 4=Visible on list and update/view form only (not create), 5=Visible on list end view form only (not create, not update). Using a negative value means field is not shown by default on list but can be selected for viewing). It can be an expression, for example: preg_match('/public/', $_SERVER['PHP_SELF'])?0:1 ($user->rights->holiday->define_holiday ? 1 : 0)
+VisibleDesc=Is the field visible ? (Examples: 0=Never visible, 1=Visible on list and create/update/view forms, 2=Visible on list only, 3=Visible on create/update/view form only (not list), 4=Visible on list and update/view form only (not create), 5=Visible on list end view form only (not create, not update).
Using a negative value means field is not shown by default on list but can be selected for viewing).
It can be an expression, for example: preg_match('/public/', $_SERVER['PHP_SELF'])?0:1 ($user->rights->holiday->define_holiday ? 1 : 0)
DisplayOnPdfDesc=Display this field on compatible PDF documents, you can manage position with "Position" field. Currently, known compatibles PDF models are : eratosthene (order), espadon (ship), sponge (invoices), cyan (propal/quotation), cornas (supplier order)
For document : 0 = not displayed 1 = display 2 = display only if not empty
For document lines : 0 = not displayed 1 = displayed in a column 3 = display in line description column after the description 4 = display in description column after the description only if not empty
DisplayOnPdf=Display on PDF
IsAMeasureDesc=Can the value of field be cumulated to get a total into list? (Examples: 1 or 0)
diff --git a/htdocs/product/stats/commande_fournisseur.php b/htdocs/product/stats/commande_fournisseur.php
index 61024cdd7ff..c111e075972 100644
--- a/htdocs/product/stats/commande_fournisseur.php
+++ b/htdocs/product/stats/commande_fournisseur.php
@@ -44,9 +44,7 @@ if (!empty($user->socid))
$result = restrictedArea($user, 'produit|service', $fieldvalue, 'product&product', '', '', $fieldtype);
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
-$hookmanager->initHooks(array(
- 'productstatssupplyorder'
-));
+$hookmanager->initHooks(array('productstatssupplyorder'));
$mesg = '';
diff --git a/htdocs/takepos/genimg/qr.php b/htdocs/takepos/genimg/qr.php
index c73e874a465..c4d60a52c1b 100644
--- a/htdocs/takepos/genimg/qr.php
+++ b/htdocs/takepos/genimg/qr.php
@@ -29,5 +29,5 @@ require '../../core/modules/barcode/doc/tcpdfbarcode.modules.php';
$key = GETPOST('key');
-$module = new modTcpdfbarcode($db);
+$module = new modTcpdfbarcode();
$result = $module->buildBarCode("http://www.takepos.com", 'QRCODE', 'Y');
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index 68e16afecd0..2f5e10c1459 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -1611,7 +1611,7 @@ div.nopadding {
}
td.nobordernopadding.widthpictotitle.col-picto {
- color: var(--colortexttitlenotab);
+ color: #bbb;
opacity: 0.85;
}
.table-list-of-attached-files .col-picto, .table-list-of-links .col-picto {
@@ -1707,6 +1707,7 @@ div.statusref {
margin-top: 8px;
margin-bottom: 10px;
clear: both;
+ text-align: right;
}
div.statusref img {
padding-left: 8px;
@@ -1750,7 +1751,7 @@ img.photorefnoborder {
border-bottom: px solid rgb();
/* border-bottom: 2px solid var(--colorbackhmenu1); */
}
-.trextrafieldseparator td {
+.trextrafieldseparator td, .trextrafields_collapse_last td {
/* border-bottom: 2px solid var(--colorbackhmenu1) !important; */
border-bottom: 2px solid rgb() !important;
}
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index c7ce5709efd..da2df5eb788 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -1799,7 +1799,7 @@ img.photorefnoborder {
border-bottom: px solid rgb();
}
-.trextrafieldseparator td {
+.trextrafieldseparator td, .trextrafields_collapse_last td {
border-bottom: 1px solid rgb() !important;
}
.tdhrthin {
diff --git a/htdocs/webservices/server_actioncomm.php b/htdocs/webservices/server_actioncomm.php
index bc3d4a78c6a..39ed3b3cdf5 100644
--- a/htdocs/webservices/server_actioncomm.php
+++ b/htdocs/webservices/server_actioncomm.php
@@ -153,8 +153,8 @@ $server->wsdl->addComplexType(
'sequence',
'',
array(
- 'code' => array('name'=>'code', 'type'=>'xsd:string'),
- 'libelle' => array('name'=>'libelle', 'type'=>'xsd:string')
+ 'code' => array('name'=>'code', 'type'=>'xsd:string'),
+ 'libelle' => array('name'=>'libelle', 'type'=>'xsd:string')
)
);
@@ -164,7 +164,7 @@ $server->wsdl->addComplexType(
'array',
'sequence',
'',
- array(
+ array(
'actioncommtype' => array(
'name' => 'actioncommtype',
'type' => 'tns:actioncommtype',