| '.$langs->trans('Ref').' | ';
- print $html->showrefnav($propal,'ref','',1,'ref','ref','');
+ print $html->showrefnav($propal,'ref',$linkback,1,'ref','ref','');
print ' |
';
// Ref client
diff --git a/htdocs/compta/propal.php b/htdocs/compta/propal.php
index d0021d9c326..3b980d73ee5 100644
--- a/htdocs/compta/propal.php
+++ b/htdocs/compta/propal.php
@@ -130,17 +130,16 @@ $formfile = new FormFile($db);
$societestatic=new Societe($db);
$propalstatic=new Propal($db);
-/*
- *
- * Mode fiche
- *
- */
-if ($_GET["propalid"] > 0)
+$now=gmmktime();
+
+$id = $_GET['propalid'];
+$ref= $_GET['ref'];
+if ($id > 0 || ! empty($ref))
{
if ($mesg) print "$mesg