bug 1546 - REPLACE statements
authorJohn Beppu <john.beppu@liblime.com>
Thu, 26 Feb 2009 19:19:28 +0000 (13:19 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Thu, 26 Feb 2009 19:45:43 +0000 (13:45 -0600)
commit1328dc0f4ae6558e9e66fa8cee9f35b333f1f1f9
treeb4976f54e37efc233ec4b5136bf938a6881e3a1d
parent9db0774cfdc42bc9c1f787881b1ed22ead5ab0b5
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>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl
tools/letter.pl