diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index c050d2e973c..ab584690118 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -41,6 +41,9 @@ if (!$user->rights->propale->lire)
if ($conf->projet->enabled) {
require_once "../project.class.php";
}
+if($conf->commande->enabled) {
+ require_once "../commande/commande.class.php";
+}
require("./propal_model_pdf.class.php");
require("../propal.class.php");
require("../actioncomm.class.php");
@@ -57,8 +60,8 @@ if ($user->societe_id > 0)
// Nombre de ligne pour choix de produit/service prédéfinis
$NBLINES=4;
-
-
+
+
/******************************************************************************/
/* Actions */
/******************************************************************************/
@@ -740,14 +743,14 @@ if ($_GET["propalid"])
$nb_commande = sizeof($propal->commande_liste_array());
if ($nb_commande > 0)
{
- $coms = $propal->commande_liste_array();
- print '
| Commande(s) rattachée(s) |
| '.$coms[$i]." | \n"; + print '
| '.$coms[$i]->ref." | \n"; print "