forked from extern/egroupware
Fix bug where editing custom status for one type lost statuses for other types
This commit is contained in:
parent
ff69b8abd7
commit
be556fc1d7
@ -248,6 +248,9 @@ class infolog_customfields extends admin_customfields
|
|||||||
{
|
{
|
||||||
if($this->$key != $value)
|
if($this->$key != $value)
|
||||||
{
|
{
|
||||||
|
// NB: Statuses are monolithic - we can't record just the one type
|
||||||
|
// that was changed, or we loose the other types. All status must
|
||||||
|
// be recorded.
|
||||||
$changed[$key] = $this->$key;
|
$changed[$key] = $this->$key;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -255,14 +258,6 @@ class infolog_customfields extends admin_customfields
|
|||||||
unset($old[$key]);
|
unset($old[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach($changed['status'] as $type => $statuses)
|
|
||||||
{
|
|
||||||
if($old['status'][$type] == $statuses)
|
|
||||||
{
|
|
||||||
unset($old['status'][$type]);
|
|
||||||
unset($changed['status'][$type]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if($changed)
|
if($changed)
|
||||||
{
|
{
|
||||||
$cmd = new admin_cmd_config('infolog',$changed, $old);
|
$cmd = new admin_cmd_config('infolog',$changed, $old);
|
||||||
|
Loading…
Reference in New Issue
Block a user