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

(-)a/Koha/REST/V1/Patrons.pm (-5 / +5 lines)
Lines 121-129 sub add { Link Here
121
                            module      => 'members',
121
                            module      => 'members',
122
                            letter_code => 'WELCOME',
122
                            letter_code => 'WELCOME',
123
                            branchcode  => $patron->branchcode,
123
                            branchcode  => $patron->branchcode,
124
                            ,
124
                            lang        => $patron->lang || 'default',
125
                            lang   => $patron->lang || 'default',
125
                            tables      => {
126
                            tables => {
127
                                'branches'  => $patron->branchcode,
126
                                'branches'  => $patron->branchcode,
128
                                'borrowers' => $patron->borrowernumber,
127
                                'borrowers' => $patron->borrowernumber,
129
                            },
128
                            },
Lines 139-145 sub add { Link Here
139
                                    message_transport_type => 'email'
138
                                    message_transport_type => 'email'
140
                                }
139
                                }
141
                            );
140
                            );
142
                            SendQueuedMessages( { message_id => $message_id } );
141
142
                            # Don't send a message if we didn't generate one for some reason
143
                            SendQueuedMessages( { message_id => $message_id } ) if $message_id;
143
                        }
144
                        }
144
                    }
145
                    }
145
                }
146
                }
146
- 

Return to bug 39408