diff --git a/htdocs/accountancy/admin/categories_list.php b/htdocs/accountancy/admin/categories_list.php
index 0580a9688ed..14475119461 100644
--- a/htdocs/accountancy/admin/categories_list.php
+++ b/htdocs/accountancy/admin/categories_list.php
@@ -669,7 +669,7 @@ if ($id)
if (empty($reshook))
{
- fieldList($fieldlist,$obj,$tabname[$id],'add');
+ fieldListAccountingCategories($fieldlist,$obj,$tabname[$id],'add');
}
print '
';
@@ -858,7 +858,7 @@ if ($id)
$error=$hookmanager->error; $errors=$hookmanager->errors;
// Show fields
- if (empty($reshook)) fieldList($fieldlist,$obj,$tabname[$id],'edit');
+ if (empty($reshook)) fieldListAccountingCategories($fieldlist,$obj,$tabname[$id],'edit');
print ' | | ';
print ' | ';
@@ -1147,7 +1147,7 @@ $db->close();
* @param string $context 'add'=Output field for the "add form", 'edit'=Output field for the "edit form", 'hide'=Output field for the "add form" but we dont want it to be rendered
* @return void
*/
-function fieldList($fieldlist, $obj='', $tabname='', $context='')
+function fieldListAccountingCategories($fieldlist, $obj='', $tabname='', $context='')
{
global $conf,$langs,$db;
global $form, $mysoc;
diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php
index c2730e6c034..28e99d02606 100644
--- a/htdocs/admin/dict.php
+++ b/htdocs/admin/dict.php
@@ -1753,15 +1753,16 @@ function fieldList($fieldlist, $obj='', $tabname='', $context='')
print '';
$transfound=0;
// Special case for labels
- if ($tabname == MAIN_DB_PREFIX.'c_payment_term') {
+ if ($tabname == MAIN_DB_PREFIX.'c_payment_term')
+ {
$langs->load("bills");
$transkey="PaymentCondition".strtoupper($obj->code);
+ if ($langs->trans($transkey) != $transkey)
+ {
+ $transfound=1;
+ print $form->textwithpicto($langs->trans($transkey), $langs->trans("GoIntoTranslationMenuToChangeThis"));
+ }
}
- if ($langs->trans($transkey) != $transkey)
- {
- $transfound=1;
- print $form->textwithpicto($langs->trans($transkey), $langs->trans("GoIntoTranslationMenuToChangeThis"));
- }
if (! $transfound)
{
print '';
diff --git a/htdocs/comm/mailing/class/mailing.class.php b/htdocs/comm/mailing/class/mailing.class.php
index 93c47f8aa51..72c2b6d4690 100644
--- a/htdocs/comm/mailing/class/mailing.class.php
+++ b/htdocs/comm/mailing/class/mailing.class.php
@@ -585,7 +585,7 @@ class Mailing extends CommonObject
* @param strin $desc Desc error
* @return string Label
*/
- static public function libStatutDest($statut,$mode=0,$desc='')
+ public static function libStatutDest($statut,$mode=0,$desc='')
{
global $langs;
$langs->load('mails');
diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php
index 4c8870c5cb0..a12a563e58c 100644
--- a/htdocs/commande/class/commande.class.php
+++ b/htdocs/commande/class/commande.class.php
@@ -2875,11 +2875,6 @@ class Commande extends CommonOrder
$this->error=$langs->trans('ErrorStockIsNotEnoughToAddProductOnOrder', $product->ref);
dol_syslog(get_class($this)."::addline error=Product ".$product->ref.": ".$this->error, LOG_ERR);
$this->db->rollback();
- unset($_POST['productid']);
- unset($_POST['tva_tx']);
- unset($_POST['price_ht']);
- unset($_POST['qty']);
- unset($_POST['buying_price']);
return self::STOCK_NOT_ENOUGH_FOR_ORDER;
}
}
|