diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php
index ad3af8c799d..1f5927f260a 100644
--- a/htdocs/comm/propal/card.php
+++ b/htdocs/comm/propal/card.php
@@ -1675,7 +1675,7 @@ if ($action == 'create')
$langs->load("projects");
print '
';
print '| '.$langs->trans("Project").' | ';
- $numprojet = $formproject->select_projects(($soc->id > 0 ? $soc->id : -1), $projectid, 'projectid', 0, 0, 1, 1);
+ $numprojet = $formproject->select_projects(($soc->id > 0 ? $soc->id : -1), $projectid, 'projectid', 0, 0, 1, 1, 0, 0, 0, '', 0, 0, 'maxwidth500');
print ' id).'">';
print ' | ';
print '
';
diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php
index 3e9c1a2b0ca..9b389bccb5b 100644
--- a/htdocs/commande/card.php
+++ b/htdocs/commande/card.php
@@ -1734,7 +1734,7 @@ if ($action == 'create' && $usercancreate)
$langs->load("projects");
print '';
print '| '.$langs->trans("Project").' | ';
- $numprojet = $formproject->select_projects(($soc->id > 0 ? $soc->id : -1), $projectid, 'projectid', 0, 0, 1, 0, 0, 0, 0, '', 0, 0);
+ $numprojet = $formproject->select_projects(($soc->id > 0 ? $soc->id : -1), $projectid, 'projectid', 0, 0, 1, 0, 0, 0, 0, '', 0, 0, 'maxwidth500');
print ' id).'">';
print ' | ';
print '
';
@@ -2100,7 +2100,7 @@ if ($action == 'create' && $usercancreate)
$morehtmlref .= '';
} else {
diff --git a/htdocs/don/card.php b/htdocs/don/card.php
index bba65463bb6..faa6693bce8 100644
--- a/htdocs/don/card.php
+++ b/htdocs/don/card.php
@@ -445,7 +445,7 @@ if ($action == 'create')
if (!empty($conf->projet->enabled))
{
print "| ".$langs->trans("Project")." | ";
- $formproject->select_projects(-1, $projectid, 'fk_project', 0, 0, 1, 1);
+ $formproject->select_projects(-1, $projectid, 'fk_project', 0, 0, 1, 1, 0, 0, 0, '', 0, 0, 'maxwidth500');
print " |
\n";
}
@@ -579,7 +579,7 @@ if (!empty($id) && $action == 'edit')
$langs->load('projects');
print '| '.$langs->trans('Project').' | ';
- $formproject->select_projects(-1, $object->fk_project, 'fk_project', 0, 0, 1, 1);
+ $formproject->select_projects(-1, $object->fk_project, 'fk_project', 0, 0, 1, 1, 0, 0, 0, '', 0, 0, 'maxwidth500');
print ' |
';
}
@@ -652,7 +652,7 @@ if (!empty($id) && $action != 'edit')
$morehtmlref.='';
} else {
diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php
index 329ee266362..703a97fe11a 100644
--- a/htdocs/fourn/facture/card.php
+++ b/htdocs/fourn/facture/card.php
@@ -2077,7 +2077,7 @@ if ($action == 'create')
$langs->load('projects');
print '| '.$langs->trans('Project').' | ';
- $formproject->select_projects((empty($conf->global->PROJECT_CAN_ALWAYS_LINK_TO_ALL_SUPPLIERS) ? $societe->id : -1), $projectid, 'projectid', 0, 0, 1, 1);
+ $formproject->select_projects((empty($conf->global->PROJECT_CAN_ALWAYS_LINK_TO_ALL_SUPPLIERS) ? $societe->id : -1), $projectid, 'projectid', 0, 0, 1, 1, 0, 0, 0, '', 0, 0, 'maxwidth500');
print ' |
';
}
diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php
index 19fed7a3387..ed5a7d244f5 100644
--- a/htdocs/fourn/facture/paiement.php
+++ b/htdocs/fourn/facture/paiement.php
@@ -916,7 +916,7 @@ if (empty($action) || $action == 'list')
$selectedfields = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage); // This also change content of $arrayfields
print '';
- print '
'."\n";
+ print ''."\n";
// Lines for filters fields
print '';
@@ -1018,7 +1018,7 @@ if (empty($action) || $action == 'list')
// Amount
print '| '.price($objp->pamount).' | ';
if (!$i) $totalarray['nbfield']++;
- $totalarray['pos'][7] = 'amount';
+ if (!$i) $totalarray['pos'][$totalarray['nbfield']] = 'amount';
$totalarray['val']['amount'] += $objp->pamount;
// Ref invoice
diff --git a/htdocs/product/card.php b/htdocs/product/card.php
index 01da1eb741f..f4e959a9459 100644
--- a/htdocs/product/card.php
+++ b/htdocs/product/card.php
@@ -1440,7 +1440,7 @@ else
// Default warehouse
print '
| '.$langs->trans("DefaultWarehouse").' | ';
print $formproduct->selectWarehouses($object->fk_default_warehouse, 'fk_default_warehouse', 'warehouseopen', 1);
- print ' '.$langs->trans("AddWarehouse").'';
+ print ' ';
print ' | ';
/*
print "
".'| '.$langs->trans("StockLimit").' | ';
|