mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 00:09:40 +01:00
notify on infolog creation as well (was not, as condition was not met for changes=true)
This commit is contained in:
parent
affd4b1885
commit
c30c4ce198
@ -284,19 +284,20 @@ class infolog_tracking extends bo_tracking
|
|||||||
if(is_null($changed_fields))
|
if(is_null($changed_fields))
|
||||||
{
|
{
|
||||||
$changed_fields = $this->changed_fields($data, $old);
|
$changed_fields = $this->changed_fields($data, $old);
|
||||||
|
$changes = count($changed_fields); // we need that since TRUE evaluates to 1
|
||||||
}
|
}
|
||||||
if(is_array($changed_fields) && $changes == 1 && in_array('info_datemodified', $changed_fields))
|
if(is_array($changed_fields) && $changes == 1 && in_array('info_datemodified', $changed_fields))
|
||||||
{
|
{
|
||||||
return count($changes);
|
return count($changes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// do not run do_notifications if we have no changes
|
// do not run do_notifications if we have no changes
|
||||||
if ($changes && !$skip_notification && !$this->do_notifications($data,$old,$deleted))
|
if ($changes && !$skip_notification && !$this->do_notifications($data,$old,$deleted))
|
||||||
{
|
{
|
||||||
$changes = false;
|
$changes = false;
|
||||||
}
|
}
|
||||||
return $changes;
|
return $changes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Save changes to the history log
|
* Save changes to the history log
|
||||||
|
Loading…
Reference in New Issue
Block a user