]> git.koha-community.org Git - koha.git/commit
bug 1546 - REPLACE statements
authorJohn Beppu <john.beppu@liblime.com>
Thu, 26 Feb 2009 19:19:28 +0000 (13:19 -0600)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 26 May 2009 19:14:58 +0000 (21:14 +0200)
commitc9a0b16965f85be2299e89123687936518c402bc
treea3d3d52ac83dc5e25976c02d0ab85d05f6ee6fad
parentc954f699cfbdb962d550b9fd6e59ca30516b005b
bug 1546 - REPLACE statements

A REPLACE statement in tools/letter.pl was indirectly corrupting data
in the message_transports table.  It has been replaced with code that
does an UPDATE or INSERT depending on whether the row existed or not.

Also, to protect data in the message_transports table further, letters
which have entries in the message_transports table are no longer
deletable.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl
tools/letter.pl