View | Details | Raw Unified | Return to bug 35279
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-1 / +1 lines)
Lines 80-86 Link Here
80
                [% END %]
80
                [% END %]
81
81
82
                [% IF CAN_user_borrowers_edit_borrowers %]
82
                [% IF CAN_user_borrowers_edit_borrowers %]
83
                    <li><a id="sendwelcome" href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber | uri %]&op=send_welcome">Send welcome email</a></li>
83
                    <li><a id="sendwelcome" href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber | uri %]&op=send_welcome">Send welcome notice</a></li>
84
                [% END %]
84
                [% END %]
85
85
86
                [% IF CAN_user_borrowers_edit_borrowers && patron.category.effective_reset_password %]
86
                [% IF CAN_user_borrowers_edit_borrowers && patron.category.effective_reset_password %]
(-)a/members/notices.pl (-1 / +23 lines)
Lines 88-93 if ( $op eq 'send_welcome' ) { Link Here
88
                }
88
                }
89
            );
89
            );
90
        };
90
        };
91
    } else {
92
        eval {
93
            my $print = GetPreparedLetter(
94
                module      => 'members',
95
                letter_code => 'WELCOME',
96
                branchcode  => $patron->branchcode,,
97
                lang        => $patron->lang || 'default',
98
                tables      => {
99
                    'branches'  => $patron->branchcode,
100
                    'borrowers' => $patron->borrowernumber,
101
                },
102
                want_librarian         => 1,
103
                message_transport_type => 'print'
104
            ) or return;
105
106
            my $message_id = EnqueueLetter(
107
                {
108
                    letter                 => $print,
109
                    borrowernumber         => $patron->id,
110
                    message_transport_type => 'print'
111
                }
112
            );
113
        };
91
    }
114
    }
92
115
93
    # redirect to self to avoid form submission on refresh
116
    # redirect to self to avoid form submission on refresh
94
- 

Return to bug 35279