Lines 102-107
sub resolve {
Link Here
|
102 |
|
102 |
|
103 |
# Optionally add to message_queue here to notify reporter |
103 |
# Optionally add to message_queue here to notify reporter |
104 |
if ( $params->{notify} ) { |
104 |
if ( $params->{notify} ) { |
|
|
105 |
my $letter = C4::Letters::GetPreparedLetter( |
106 |
module => 'catalog', |
107 |
letter_code => 'CONCERN_RESOLVE', |
108 |
branchcode => $self->resolver->branchcode, |
109 |
tables => { catalog_concerns => $self->id } |
110 |
); |
111 |
|
112 |
if ($letter) { |
113 |
my $message_id = C4::Letters::EnqueueLetter( |
114 |
{ |
115 |
letter => $letter, |
116 |
borrowernumber => $self->reporter_id, |
117 |
message_transport_type => 'email', |
118 |
} |
119 |
); |
120 |
C4::Letters::SendQueuedMessages( { message_id => $message_id } ); |
121 |
} |
105 |
|
122 |
|
106 |
} |
123 |
} |
107 |
|
124 |
|
Lines 137-143
sub store {
Link Here
|
137 |
{ |
154 |
{ |
138 |
letter => $letter, |
155 |
letter => $letter, |
139 |
message_transport_type => 'email', |
156 |
message_transport_type => 'email', |
140 |
to_address => C4::Preference('CatalogerEmails'), |
157 |
to_address => C4::Context->preference('CatalogerEmails'), |
141 |
reply_address => $self->reporter->notice_email_address, |
158 |
reply_address => $self->reporter->notice_email_address, |
142 |
} |
159 |
} |
143 |
); |
160 |
); |