]> git.koha-community.org Git - koha.git/commit
Bug 15415: Warn when creating a new print profile
authorAleisha Amohia <aleishaamohia@hotmail.com>
Fri, 2 Dec 2016 03:04:07 +0000 (03:04 +0000)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 2 Jan 2017 12:37:35 +0000 (13:37 +0100)
commit8b75deaaa101d3086b663653e5eda8f92039fe8e
tree455993b95da5dc5295aeb970247125808ba38dcc
parentc9bbe5a1c66a2b0a0a0cd980d4a7428b0ff6336f
Bug 15415: Warn when creating a new print profile

As per Jonathan's comment in Comment 3, I've put that line of code in an
if statement that will only call the get_attr method if we are editing
an existing profile (therefore the profile id will exist).

To test:
1) Go to Tools -> Patron Card Creator -> New printer profile
2) Notice warn
3) Apply patch
4) Refresh page
5) Confirm warn is gone and page still works as expected

Sponsored-by: Catalyst IT
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 47e80e899aca7c79aaeb58350401a1963fbe709d)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
patroncards/edit-profile.pl