diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php
index d160793b735..6bffb7fe535 100644
--- a/htdocs/admin/dict.php
+++ b/htdocs/admin/dict.php
@@ -1889,6 +1889,9 @@ function fieldList($fieldlist, $obj='', $tabname='', $context='')
{
print '';
}
+ else{
+ print '';
+ }
print '';
}
elseif ($fieldlist[$field] == 'price' || preg_match('/^amount/i',$fieldlist[$field])) {
@@ -1951,7 +1954,13 @@ function fieldList($fieldlist, $obj='', $tabname='', $context='')
}
else
{
- if ($fieldlist[$field]=='sortorder') $fieldlist[$field]='position';
+
+ $fieldValue = isset($obj->{$fieldlist[$field]})?$obj->{$fieldlist[$field]}:'';
+
+ if ($fieldlist[$field]=='sortorder')
+ {
+ $fieldlist[$field]='position';
+ }
$classtd=''; $class='';
if ($fieldlist[$field]=='code') $classtd='width100';
@@ -1972,7 +1981,7 @@ function fieldList($fieldlist, $obj='', $tabname='', $context='')
}
if ($tabname == MAIN_DB_PREFIX.'c_payment_term') {
$langs->load("bills");
- $transkey="PaymentCondition".strtoupper($obj->code);
+ $transkey="PaymentConditionShort".strtoupper($obj->code);
}
if ($transkey && $langs->trans($transkey) != $transkey)
{
@@ -1982,8 +1991,11 @@ function fieldList($fieldlist, $obj='', $tabname='', $context='')
}
if (! $transfound)
{
- print '';
+ print '';
}
+ else{
+ print '';
+ }
print '';
}
}
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index fe8a812a8a2..a462f40ebdc 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -5558,7 +5558,8 @@ class Form
if ($prefixforautocompletemode == 'societe') $prefixforautocompletemode='company';
$confkeyforautocompletemode=strtoupper($prefixforautocompletemode).'_USE_SEARCH_TO_SELECT'; // For example COMPANY_USE_SEARCH_TO_SELECT
- $fieldstoshow='t.ref';
+ if (((float) DOL_VERSION) < 10 && $objecttmp->element == 'facture') $fieldstoshow = 't.facnumber';
+ else $fieldstoshow='t.ref';
if (! empty($objecttmp->fields)) // For object that declare it, it is better to use declared fields ( like societe, contact, ...)
{
$tmpfieldstoshow='';
diff --git a/htdocs/product/admin/product.php b/htdocs/product/admin/product.php
index 334640e87d3..4c58591e987 100644
--- a/htdocs/product/admin/product.php
+++ b/htdocs/product/admin/product.php
@@ -245,12 +245,12 @@ if ($action == 'set')
if (! $res > 0) $error++;
}
-if ($action == 'other')
-{
- $value = GETPOST('activate_units', 'alpha');
- $res = dolibarr_set_const($db, "PRODUCT_USE_UNITS", $value, 'chaine', 0, '', $conf->entity);
- if (! $res > 0) $error++;
-}
+//if ($action == 'other')
+//{
+// $value = GETPOST('activate_units', 'alpha');
+// $res = dolibarr_set_const($db, "PRODUCT_USE_UNITS", $value, 'chaine', 0, '', $conf->entity);
+// if (! $res > 0) $error++;
+//}
if ($action)
{