mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 01:48:35 +01:00
If changing the status of done entries, change completion to 99% instead of giving an error
This commit is contained in:
parent
ece55ed97a
commit
05df47216f
@ -914,14 +914,13 @@ class infolog_ui
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'status':
|
case 'status':
|
||||||
if($settings != 'done' && $entry['info_status'] == 'done' && $entry['info_percent'] == 100)
|
|
||||||
{
|
|
||||||
$msg .= lang('Unable to change status from done because of completion. ') . "\n";
|
|
||||||
$failed++;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if(in_array($settings, $this->bo->status[$entry['info_type']])) {
|
if(in_array($settings, $this->bo->status[$entry['info_type']])) {
|
||||||
$action_msg = lang('changed status to %1', lang($this->bo->status[$entry['info_type']][$settings]));
|
$action_msg = lang('changed status to %1', lang($this->bo->status[$entry['info_type']][$settings]));
|
||||||
|
if($settings != 'done' && $entry['info_status'] == 'done' && $entry['info_percent'] == 100)
|
||||||
|
{
|
||||||
|
// Done entries will get changed right back if we don't change the completion too
|
||||||
|
$entry['info_percent'] == 99;
|
||||||
|
}
|
||||||
$entry['info_status'] = $settings;
|
$entry['info_status'] = $settings;
|
||||||
if($this->bo->write($entry)) {
|
if($this->bo->write($entry)) {
|
||||||
$success++;
|
$success++;
|
||||||
|
Loading…
Reference in New Issue
Block a user