From 13552bb3a418cbeea33b93fa87c141c60e4ef59f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 1 Nov 2011 15:05:42 +0100 Subject: [PATCH] Minor fix into action management --- htdocs/comm/action/class/actioncomm.class.php | 6 +++--- htdocs/comm/action/fiche.php | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php index 36c54fc51b7..99bd144d727 100644 --- a/htdocs/comm/action/class/actioncomm.class.php +++ b/htdocs/comm/action/class/actioncomm.class.php @@ -228,7 +228,7 @@ class ActionComm extends CommonObject /** * Load object from database * - * @param int $id id de l'action a recuperer + * @param int $id Id of action to get * @return int <0 if KO, >0 if OK */ function fetch($id) @@ -236,8 +236,8 @@ class ActionComm extends CommonObject global $langs; $sql = "SELECT a.id,"; - $sql.= " a.id as ref"; - $sql.= " a.ref_ext"; + $sql.= " a.id as ref,"; + $sql.= " a.ref_ext,"; $sql.= " a.datep,"; $sql.= " a.datep2,"; $sql.= " a.datec,"; diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index c6f8bdc8c6f..f7bc56d26fe 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -579,7 +579,7 @@ if ($action == 'create') // Priority print ''.$langs->trans("Priority").''; - print 'priority).'" size="5">'; + print 'priority?$actioncomm->priority:'')).'" size="5">'; print ''; add_row_for_calendar_link(); @@ -700,6 +700,7 @@ if ($id) print ''; print ''; print ''; + print ''; if (GETPOST("backtopage")) print ''; print ''; @@ -787,7 +788,7 @@ if ($id) // Priority print ''; // Object linked @@ -949,7 +950,7 @@ if ($id) // Priority print ''; // Object linked
'.$langs->trans("Priority").''; - print ''; + print ''; print '
'.$langs->trans("Priority").''; - print $act->priority; + print ($act->priority?$act->priority:''); print '