Merge pull request #6447 from aternatik/fix_6446
Fix #6446 : Event status lost after assign or remouve user
This commit is contained in:
commit
b32c552fbc
@ -854,6 +854,9 @@ if ($id > 0)
|
|||||||
$result4=$object->fetch_userassigned();
|
$result4=$object->fetch_userassigned();
|
||||||
$result5=$object->fetch_optionals($id,$extralabels);
|
$result5=$object->fetch_optionals($id,$extralabels);
|
||||||
|
|
||||||
|
$percentage=in_array(GETPOST('status'),array(-1,100))?GETPOST('status'):(in_array(GETPOST('complete'),array(-1,100))?GETPOST('complete'):GETPOST("percentage")); // If status is -1 or 100, percentage is not defined and we must use status
|
||||||
|
|
||||||
|
|
||||||
if($listUserAssignedUpdated || $donotclearsession) {
|
if($listUserAssignedUpdated || $donotclearsession) {
|
||||||
|
|
||||||
$datep=dol_mktime($fulldayevent?'00':$aphour, $fulldayevent?'00':$apmin, 0, $_POST["apmonth"], $_POST["apday"], $_POST["apyear"]);
|
$datep=dol_mktime($fulldayevent?'00':$aphour, $fulldayevent?'00':$apmin, 0, $_POST["apmonth"], $_POST["apday"], $_POST["apyear"]);
|
||||||
@ -1030,7 +1033,7 @@ if ($id > 0)
|
|||||||
|
|
||||||
// Status
|
// Status
|
||||||
print '<tr><td class="nowrap">'.$langs->trans("Status").' / '.$langs->trans("Percentage").'</td><td colspan="3">';
|
print '<tr><td class="nowrap">'.$langs->trans("Status").' / '.$langs->trans("Percentage").'</td><td colspan="3">';
|
||||||
$percent=GETPOST("percentage")?GETPOST("percentage"):$object->percentage;
|
$percent = GETPOST("percentage") ? GETPOST("percentage"): $object->percentage;
|
||||||
$formactions->form_select_status_action('formaction',$percent,1);
|
$formactions->form_select_status_action('formaction',$percent,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user