mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-14 14:28:10 +02:00
BranchMerger: no remark with empty comment
This commit is contained in:
parent
8bcc20e004
commit
bb567946d2
@ -101,11 +101,13 @@ class BranchMerger
|
||||
$firstActivityId = (int) $this->db->fetchOne(
|
||||
$this->db->select()->from('director_activity_log', 'MIN(id)')->where('id > ?', $formerActivityId)
|
||||
);
|
||||
$this->db->insert('director_activity_log_remark', [
|
||||
'first_related_activity' => $firstActivityId,
|
||||
'last_related_activity' => $currentActivityId,
|
||||
'remark' => $comment,
|
||||
]);
|
||||
if ($comment && strlen($comment)) {
|
||||
$this->db->insert('director_activity_log_remark', [
|
||||
'first_related_activity' => $firstActivityId,
|
||||
'last_related_activity' => $currentActivityId,
|
||||
'remark' => $comment,
|
||||
]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user