Bug 18672: Fix overwriting creation date with modification date when editing list
commita355e31701b32bd16517af57a585444c93eef771
authorMarc Véron <veron@veron.ch>
Mon, 29 May 2017 06:56:14 +0000 (29 08:56 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 17 Jul 2017 16:19:24 +0000 (17 13:19 -0300)
treed40373b9750ae8b8e7063690441f289f5b516f7e
parent85b895c2dfdf9499fdb12bd108c740144597c89e
Bug 18672: Fix overwriting creation date with modification date when editing list

To reproduce:
- In staff client, create a new list (if you have not already one)
- In db, update virtualshelves and set field created_on to an earlier date,
  something like:
  update virtualshelves set created_on = '2017-04-01 02:09:12' where shelfnumber = 1;
- Go to Home > Lists > Your lists
- Verify that the modified creation date for this list appears in staff client
- Edit list in staff client, save
- Verify that creation date is overwritten by modification date (wrong)

To test:
- Apply patch
- Repeat steps above, verify that creation date no longer is overwritten
  by modification date

Signed-off-by: Lee Jamison <ldjamison@marywood.edu>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Amended patch: Use existing indendation
Koha/Virtualshelf.pm