Update task.php
Allow to change the ref of a task (like the ref of project)
This commit is contained in:
parent
1930d0677e
commit
a33727f4c5
@ -81,6 +81,7 @@ if ($action == 'update' && ! $_POST["cancel"] && $user->rights->projet->creer)
|
|||||||
$task_parent=$tmparray[1];
|
$task_parent=$tmparray[1];
|
||||||
if (empty($task_parent)) $task_parent = 0; // If task_parent is ''
|
if (empty($task_parent)) $task_parent = 0; // If task_parent is ''
|
||||||
|
|
||||||
|
$object->ref = $_POST["ref"];
|
||||||
$object->label = $_POST["label"];
|
$object->label = $_POST["label"];
|
||||||
$object->description = $_POST['description'];
|
$object->description = $_POST['description'];
|
||||||
$object->fk_task_parent = $task_parent;
|
$object->fk_task_parent = $task_parent;
|
||||||
@ -308,7 +309,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
|
|
||||||
// Ref
|
// Ref
|
||||||
print '<tr><td width="30%">'.$langs->trans("Ref").'</td>';
|
print '<tr><td width="30%">'.$langs->trans("Ref").'</td>';
|
||||||
print '<td>'.$object->ref.'</td></tr>';
|
print '<td><input size="12" name="ref" value="'.$object->ref.'"></td></tr>';
|
||||||
|
|
||||||
// Label
|
// Label
|
||||||
print '<tr><td>'.$langs->trans("Label").'</td>';
|
print '<tr><td>'.$langs->trans("Label").'</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user