Commit be9a5ac2 authored by Manfred Kutas's avatar Manfred Kutas

ZP-955 Warnings in diff backend.

Released under the Affero GNU General Public License (AGPL) version 3.
parent e729b422
......@@ -189,10 +189,17 @@ class DiffState implements IChanges {
$changes[] = $change;
}
// @see https://jira.z-hub.io/browse/ZP-955
if (isset($old_item['mod']) && isset($item['mod'])) {
if ($old_item['mod'] != $item['mod']) {
$change["type"] = "change";
$changes[] = $change;
}
}
else if (isset($old_item['mod']) || isset($item['mod'])) {
$change["type"] = "change";
$changes[] = $change;
}
// unset in $old, so $old contains only the deleted items
unset($old[$id]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment