[Koha-bugs] [Bug 4419] cannot change module for notice templates

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 22 16:48:55 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4419

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> 2011-08-22 14:48:55 UTC ---
In my test the problem isn't that submitting the form doesn't do anything, it's
that it does the wrong thing. What happens is a *new* notice is created with
the update values you set. You end up with a duplicate notice with the updated
module value.

This problem happens because of the way submissions are handled. First the code
checks to see if you're updating a notice or editing it:

if (letter_exists($module, $code)) {...

The letter isn't going to exist, because the value for $module is the *new*
value you're trying to update it to. There for the code proceeds to performing
an insert instead of an update.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list