mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Make sure status has a 'not-started' value before we switch to it, prevents infologs disappearing if you change status back to 0%
This commit is contained in:
parent
5f3e81c472
commit
345ec3c652
@ -370,7 +370,7 @@ app.classes.infolog = AppJS.extend(
|
||||
if (completed != (status.value == 'done' || status.value == 'billed') ||
|
||||
(status.value == 'not-started') != (percent.value == 0))
|
||||
{
|
||||
status.value = percent.value == 0 ? 'not-started' : (percent.value == 100 ? 'done' : 'ongoing');
|
||||
status.value = percent.value == 0 ? ($j('[value="not-started"]',status).length ? 'not-started':'ongoing') : (percent.value == 100 ? 'done' : 'ongoing');
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user