From 3db9a49275da2966e4ae5ada8f2c685c747bce21 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 17 Nov 2011 15:52:38 +0100 Subject: [PATCH 1/2] Fix: bad object typo --- htdocs/comm/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index 6bbd07771b2..c8f81608ad6 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -105,7 +105,7 @@ if ($action == 'setconditions' && $user->rights->societe->creer) // mode de reglement if ($action == 'setmode' && $user->rights->societe->creer) { - $obejct->fetch($id); + $object->fetch($id); $object->mode_reglement=$_POST['mode_reglement_id']; // TODO move to DAO class From 75fe0c67d406635956e03763b2cf3260c0130d7b Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 17 Nov 2011 17:13:39 +0100 Subject: [PATCH 2/2] Fix: bad link --- htdocs/comm/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index c8f81608ad6..aaf89d6fd21 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -502,7 +502,7 @@ if ($id > 0) { $objp = $db->fetch_object($resql); print ""; - print ''.img_object($langs->trans("ShowPropal"),"propal").' '.$objp->ref.''."\n"; + print ''.img_object($langs->trans("ShowPropal"),"propal").' '.$objp->ref.''."\n"; if ( ($db->jdate($objp->dp) < ($now - $conf->propal->cloture->warning_delay)) && $objp->fk_statut == 1 ) { print " ".img_warning();