diff --git a/htdocs/compta/sociales/card.php b/htdocs/compta/sociales/card.php index 79401b57798..3816fa6ee58 100644 --- a/htdocs/compta/sociales/card.php +++ b/htdocs/compta/sociales/card.php @@ -426,7 +426,7 @@ if ($id > 0) print '
| '.$langs->trans("Ref").' | '; print $form->showrefnav($object,'id',$linkback); @@ -446,7 +446,7 @@ if ($id > 0) }*/ // Type - print " | ||
| ".$langs->trans("Type")." | ".$object->type_libelle." | "; + print '||
| '.$langs->trans("Type")." | ".$object->type_libelle." | "; print "||
| '.$langs->trans("Loan").' | '; - print '|||
| '.$langs->trans("Ref").' | '.$chid.' | ||
| '.$langs->trans("Ref").' | '.$chid.' | ||
| '.$langs->trans("DateStart").' | '.dol_print_date($loan->datestart,'day')." | ||
| '.$langs->trans("Label").' | '.$loan->label." | ||
| '.$langs->trans("Amount").' | '.price($loan->capital,0,$outputlangs,1,-1,-1,$conf->currency).' | '.$langs->trans("Payment").' | '; print ''; - print '|
| '.$langs->trans("Date").' | '; + print ' | ||
| '.$langs->trans("Date").' | '; $datepaid = dol_mktime(12, 0, 0, GETPOST('remonth', 'int'), GETPOST('reday', 'int'), GETPOST('reyear', 'int')); $datepayment = empty($conf->global->MAIN_AUTOFILL_DATE)?(empty($_POST["remonth"])?-1:$datepaye):0; $form->select_date($datepayment, '', '', '', '', "add_payment", 1, 1); diff --git a/htdocs/product/class/api_products.class.php b/htdocs/product/class/api_products.class.php index 19fae0b6342..81b4458706c 100644 --- a/htdocs/product/class/api_products.class.php +++ b/htdocs/product/class/api_products.class.php @@ -268,6 +268,21 @@ class Products extends DolibarrApi return $categories->getListForItem('product', $sortfield, $sortorder, $limit, $page, $id); } + /** + * Clean sensible object datas + * + * @param object $object Object to clean + * @return array Array of cleaned object properties + */ + function _cleanObjectDatas($object) { + + $object = parent::_cleanObjectDatas($object); + + unset($object->regeximgext); + + return $object; + } + /** * Validate fields before create or update object * diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index 2cec79d7020..216d08df637 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -685,7 +685,7 @@ if ($id > 0 || $ref) { dol_print_error($db); } - print ' | ||
| '.$langs->trans("LastMovement").' | '; + print ' | ||
| '.$langs->trans("LastMovement").' | '; if ($lastmovementdate) { print dol_print_date($lastmovementdate,'dayhour').' '; | ||