mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Log an error if trying to merge and app has not implemented bo_tracking->id_field, and skip the merge
This commit is contained in:
parent
66b95f54b6
commit
a23f04ca2f
@ -1047,8 +1047,11 @@ abstract class bo_tracking
|
|||||||
protected function get_signature($data, $old, $receiver)
|
protected function get_signature($data, $old, $receiver)
|
||||||
{
|
{
|
||||||
$config = config::read('notifications');
|
$config = config::read('notifications');
|
||||||
|
if(!isset($data[$this->id_field]))
|
||||||
if(class_exists($this->app. '_merge'))
|
{
|
||||||
|
error_log($this->app . ' did not properly implement bo_tracking->id_field. Merge skipped.');
|
||||||
|
}
|
||||||
|
elseif(class_exists($this->app. '_merge'))
|
||||||
{
|
{
|
||||||
$merge_class = $this->app.'_merge';
|
$merge_class = $this->app.'_merge';
|
||||||
$merge = new $merge_class();
|
$merge = new $merge_class();
|
||||||
|
Loading…
Reference in New Issue
Block a user