diff --git a/htdocs/core/boxes/box_actions.php b/htdocs/core/boxes/box_actions.php index 2b251a6599f..0f6e48a1520 100644 --- a/htdocs/core/boxes/box_actions.php +++ b/htdocs/core/boxes/box_actions.php @@ -95,6 +95,7 @@ class box_actions extends ModeleBoxes $late = ''; $objp = $db->fetch_object($result); $datelimite = $db->jdate($objp->dp); + $actionstatic->id = $objp->id; $actionstatic->label = $objp->label; $actionstatic->type_label = $objp->type_label; $actionstatic->code = $objp->code; @@ -108,7 +109,6 @@ class box_actions extends ModeleBoxes //($langs->transnoentities("Action".$objp->code)!=("Action".$objp->code) ? $langs->transnoentities("Action".$objp->code) : $objp->label) $label = empty($objp->label)?$objp->type_label:$objp->label; - $tooltip = $langs->trans('Action'.$objp->code).': '.$label; $this->info_box_contents[$line][] = array( 'td' => 'align="left"', 'text' => $actionstatic->getNomUrl(1), diff --git a/htdocs/don/class/don.class.php b/htdocs/don/class/don.class.php index 080d0adb806..33706ddd841 100644 --- a/htdocs/don/class/don.class.php +++ b/htdocs/don/class/don.class.php @@ -709,13 +709,13 @@ class Don extends CommonObject * Classify the donation as paid, the donation was received * * @param int $id id of donation - * @param int $modepayment mode de payment + * @param int $modepayment mode of payment * @return int <0 if KO, >0 if OK */ - function set_paid($id, $modepaiement='') + function set_paid($id, $modepayment='') { $sql = "UPDATE ".MAIN_DB_PREFIX."don SET fk_statut = 2"; - if ($modepaiement) + if ($modepayment) { $sql .= ", fk_payment=$modepayment"; }