mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Minor fix into action management
This commit is contained in:
parent
2996ee7639
commit
13552bb3a4
|
|
@ -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,";
|
||||
|
|
|
|||
|
|
@ -579,7 +579,7 @@ if ($action == 'create')
|
|||
|
||||
// Priority
|
||||
print '<tr><td nowrap>'.$langs->trans("Priority").'</td><td colspan="3">';
|
||||
print '<input type="text" name="priority" value="'.($_POST["priority"]?$_POST["priority"]:$actioncomm->priority).'" size="5">';
|
||||
print '<input type="text" name="priority" value="'.($_POST["priority"]?$_POST["priority"]:($actioncomm->priority?$actioncomm->priority:'')).'" size="5">';
|
||||
print '</td></tr>';
|
||||
|
||||
add_row_for_calendar_link();
|
||||
|
|
@ -700,6 +700,7 @@ if ($id)
|
|||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
print '<input type="hidden" name="action" value="update">';
|
||||
print '<input type="hidden" name="id" value="'.$id.'">';
|
||||
print '<input type="hidden" name="ref_ext" value="'.$act->ref_ext.'">';
|
||||
if (GETPOST("backtopage")) print '<input type="hidden" name="backtopage" value="'.(GETPOST("backtopage") ? GETPOST("backtopage") : $_SERVER["HTTP_REFERER"]).'">';
|
||||
|
||||
print '<table class="border" width="100%">';
|
||||
|
|
@ -787,7 +788,7 @@ if ($id)
|
|||
|
||||
// Priority
|
||||
print '<tr><td nowrap>'.$langs->trans("Priority").'</td><td colspan="3">';
|
||||
print '<input type="text" name="priority" value="'.$act->priority.'" size="5">';
|
||||
print '<input type="text" name="priority" value="'.($act->priority?$act->priority:'').'" size="5">';
|
||||
print '</td></tr>';
|
||||
|
||||
// Object linked
|
||||
|
|
@ -949,7 +950,7 @@ if ($id)
|
|||
|
||||
// Priority
|
||||
print '<tr><td nowrap>'.$langs->trans("Priority").'</td><td colspan="3">';
|
||||
print $act->priority;
|
||||
print ($act->priority?$act->priority:'');
|
||||
print '</td></tr>';
|
||||
|
||||
// Object linked
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user