Compare commits

..

3 Commits

Author SHA1 Message Date
9681e08855
fix pipeline
All checks were successful
soko-web/pipeline/pr-master This commit looks good
2023-04-17 21:41:06 +02:00
a1e05da920
add/modify template for audit logger
Some checks failed
soko-web/pipeline/pr-master There was a failure building this commit
2023-04-17 21:41:06 +02:00
64d7972cec
implement audit logger 2023-04-17 21:41:06 +02:00

View File

@ -135,10 +135,12 @@ class Modify
private function update(): void private function update(): void
{ {
if ($this->auditLogger !== null) {
$this->generateDiff(); $this->generateDiff();
if (count($this->diff) === 0) { if (count($this->diff) === 0) {
return; return;
} }
}
$attributes = $this->attributes; $attributes = $this->attributes;
unset($attributes[$this->idName]); unset($attributes[$this->idName]);