Bug 9279

Summary: Problem with quick slip templates
Product: Koha Reporter: Vitor Fernandes <vfernandes>
Component: NoticesAssignee: Vitor Fernandes <vfernandes>
Status: RESOLVED DUPLICATE QA Contact: Jonathan Druart <jonathan.druart>
Severity: major    
Priority: P1 - high CC: jonathan.druart, kyle
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: Sponsored Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 9279: Problem with quick slip templates
[SIGNED-OFF] Bug 9279: Problem with quick slip templates

Description Vitor Fernandes 2012-12-13 09:53:17 UTC
Yesterday I was trying the using of quick slip templates in Koha 3.8.7.
I've modified the template and then I've done one check out to one patron.
Then I tried to print the quick slip, and two thing happened:

- If I was in circulation tab of the patron, when printing the quick slip the template was used (printslip.pl was called)
- If I was in details tab of the patron, when printing the quick slip the templates wasn't used (moremember.pl was called)

Should be the template always be used besides being on circulation or details tab?
Comment 1 Vitor Fernandes 2012-12-19 17:51:59 UTC Comment hidden (obsolete)
Comment 2 Kyle M Hall (khall) 2012-12-21 16:54:09 UTC
Can't reproduce in master, versioning for 3.8
Comment 3 Vitor Fernandes 2012-12-21 17:06:11 UTC
Kyle,

I have a master clone, and the error is still there.
Code of member-toolbar.inc:

function printx_window(print_type) {
                window.open("/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=" + print_type, "printwindow");
                return false;
        }


Note that moremember.pl is always invoked.
Comment 4 Kyle M Hall (khall) 2012-12-21 17:11:41 UTC
Thanks for the info! Resetting version to master.

Kyle

(In reply to comment #3)
> Kyle,
> 
> I have a master clone, and the error is still there.
> Code of member-toolbar.inc:
> 
> function printx_window(print_type) {
>                
> window.open("/cgi-bin/koha/members/moremember.pl?borrowernumber=[%
> borrowernumber %]&amp;print=" + print_type, "printwindow");
>                 return false;
>         }
> 
> 
> Note that moremember.pl is always invoked.
Comment 5 Kyle M Hall (khall) 2012-12-21 17:14:29 UTC
Created attachment 14252 [details] [review]
[SIGNED-OFF] Bug 9279: Problem with quick slip templates

Yesterday I was trying the using of quick slip templates in Koha 3.8.7.
I've modified the template and then I've done one check out to one patron.
Then I tried to print the quick slip, and two thing happened:

- If I was in circulation tab of the patron, when printing the quick slip the template was used (printslip.pl was called)
- If I was in details tab of the patron, when printing the quick slip the templates wasn't used (moremember.pl was called)

To test:

- change for example the quickslip template in the notices tools
- go to patrons checkout page and do a check out of one item
- try to print the quick slip in the same page, and see if the template is used
- go to the patron details tab and try to print the quick slip
- if the template is used then the bug is corrected, if not the bug still happens
- try the slip template too

Sponsored-by: KEEP SOLUTIONS
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 6 Jonathan Druart 2013-01-04 13:40:04 UTC
The bug 6261 solves this issue.

*** This bug has been marked as a duplicate of bug 6261 ***