Update card.php

This commit is contained in:
Laurent Destailleur 2021-02-19 15:56:10 +01:00 committed by GitHub
parent e2b469dee4
commit aab4f8e028
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1056,7 +1056,7 @@ if ($action == 'create')
else {
if (GETPOST('complete') == '0' || GETPOST("afaire") == 1) $percent = '0';
elseif (GETPOST('complete') == 100 || GETPOST("afaire") == 2) $percent = 100;
elseif ($conf->global->AGENDA_EVENT_DEFAULT_STATUS!=='na') $percent = $conf->global->AGENDA_EVENT_DEFAULT_STATUS;
elseif (isset($conf->global->AGENDA_EVENT_DEFAULT_STATUS) && $conf->global->AGENDA_EVENT_DEFAULT_STATUS!=='na') $percent = $conf->global->AGENDA_EVENT_DEFAULT_STATUS;
}
$formactions->form_select_status_action('formaction', $percent, 1, 'complete', 0, 0, 'maxwidth200');
print '</td></tr>';