]> git.koha-community.org Git - koha.git/commit
Bug 8247 - adding basket doesn't save basket name, internal or vendor note
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 14 Jun 2012 15:17:52 +0000 (17:17 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 20 Jun 2012 08:53:09 +0000 (20:53 +1200)
commitc151893113a0c2e12e4b7db2adcea45fde625b21
treeaa2a19e07bb17608250ddd83d6d316f0b9d34951
parentda4de8cc086b1e2a01abad6acd46095f966222f8
Bug 8247 - adding basket doesn't save basket name, internal or vendor note

URL: /cgi-bin/koha/acqui/basketheader.pl?booksellerid=32&op=add_form

I'm also getting mysql referential integrity error:

DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key constraint fails (`koha_srvgit`.`aqbasket`, CONSTRAINT `aqbasket_ibfk_1` FOREIGN KEY (`booksellerid`) REFERENCES `aqbooksellers` (`id`) ON UPDATE CASCADE) at /srv/koha/C4/Acquisition.pm line 416.

Test scenario:

1. Find vendor and select "New basket"
2. fill in basket name, internal and vendor note
3. press save
4. verify that created basket doesn't have name nor internal or vendor notes

Signed-off-by: Marc Veron <veron@veron.ch>
First tested without patch applied, new basket's name and internal / vendor notes were empty-
Applied patch, new basket's name and notes behave OK.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Acquisition.pm