[Koha-bugs] [Bug 25159] Action logs should be stored in JSON ( and as a diff of the change )

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 15 15:58:12 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25159

--- Comment #1 from Kyle M Hall <kyle at bywatersolutions.com> ---
If we used Scruct::Diff, we should keep the old values, but omit unchanged
values

$diff = diff($x, $y, noU => 1 ); # omit unchanged items

This would give:
{
  "D": {
    "cardnumber": {
      "N": "9876543"
      "O": "12345"
    },
    "nickname": {
      "A": "K-dog"
    },
    "suffix": {
      "R": "Jr."
    }
  }
}

So we can display the old and new values for changed fields.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list