]> git.koha-community.org Git - koha.git/commit
Bug 5860: Adding duplicate stocknumber fails silently
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Mon, 4 Apr 2011 11:20:20 +0000 (11:20 +0000)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Sat, 16 Apr 2011 15:51:10 +0000 (11:51 -0400)
commit708dcb3e3fc2bc46f5271c4981c6b3141c1eb2f6
tree0ebb782f5bf88999e91ac6a21561c70788cdc356
parent2fb003a7c0e8ec22510501500d47778cdf2ad5d5
Bug 5860: Adding duplicate stocknumber fails silently

When adding a duplicate stocknumber the duplicate was not saved to the database.
This happened, because the field stocknumber in table items was declared to be unique.
Discussion on bug suggests to lift this restriction.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tested. Corrected typo in updatedatabase script. Version 3.01.00.095 introduced the index with double s, although structure had only one s in index name.
Unaware of this bug, I entered the more general bug 6041 for similar problems with modifying items.
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit a8ffb2273b63c398492a7cbd08394adedb2aeadb)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
installer/data/mysql/updatedatabase.pl