Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
4f3806ed70
@ -246,7 +246,8 @@ if (($action == 'updateline' || $action == 'updatesplitline') && !$cancel && $us
|
||||
|
||||
if (!$error) {
|
||||
if (GETPOST('taskid', 'int') != $id) { // GETPOST('taskid') is id of new task
|
||||
$id = GETPOST('taskid', 'int');
|
||||
$id_temp = GETPOST('taskid', 'int'); // should not overwrite $id
|
||||
|
||||
|
||||
$object->fetchTimeSpent(GETPOST('lineid', 'int'));
|
||||
|
||||
@ -255,7 +256,7 @@ if (($action == 'updateline' || $action == 'updatesplitline') && !$cancel && $us
|
||||
$result = $object->delTimeSpent($user);
|
||||
}
|
||||
|
||||
$object->fetch($id, $ref);
|
||||
$object->fetch($id_temp, $ref);
|
||||
|
||||
$object->timespent_note = GETPOST("timespent_note_line", 'alpha');
|
||||
$object->timespent_old_duration = GETPOST("old_duration");
|
||||
|
||||
@ -2672,7 +2672,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
||||
print dol_print_profids($object->$key, 'ProfId'.$i, $object->country_code, 1);
|
||||
if ($object->$key) {
|
||||
if ($object->id_prof_check($i, $object) > 0) {
|
||||
print ' '.$object->id_prof_url($i, $object);
|
||||
if (!empty($object->id_prof_url($i, $object))) {
|
||||
print ' '.$object->id_prof_url($i, $object);
|
||||
}
|
||||
} else {
|
||||
print ' <span class="error">('.$langs->trans("ErrorWrongValue").')</span>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user