Bug 29393: Add a dedicated letters module for add message
Signed-off-by: Matthias Le Gac <matthias.le-gac@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
48948dc9fa
commit
3211fff98f
3 changed files with 9 additions and 3 deletions
|
@ -61,7 +61,6 @@ elsif( $op eq 'cud-add_message' ) {
|
|||
message => $borrower_message,
|
||||
}
|
||||
)->store;
|
||||
|
||||
}
|
||||
|
||||
if ( $message_type eq 'E' ) {
|
||||
|
@ -74,7 +73,7 @@ elsif( $op eq 'cud-add_message' ) {
|
|||
|
||||
if ( $letter_code ) {
|
||||
$letter = C4::Letters::GetPreparedLetter(
|
||||
module => 'members',
|
||||
module => 'add_message',
|
||||
letter_code => $letter_code,
|
||||
lang => $patron->lang,
|
||||
tables => {
|
||||
|
|
|
@ -153,7 +153,7 @@
|
|||
</div>
|
||||
[% END %]
|
||||
|
||||
[% patron_letters = NoticeTemplates.GetByModule( 'members' ) %]
|
||||
[% patron_letters = NoticeTemplates.GetByModule( 'add_message' ) %]
|
||||
[% IF patron_letters %]
|
||||
<div class="form-group">
|
||||
<label for="select_patron_notice" style="display:none;">Patron notice: </label>
|
||||
|
|
|
@ -181,6 +181,7 @@
|
|||
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=suggestions">Suggestions</a></li>
|
||||
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=pos">Point of sale</a></li>
|
||||
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=report">Reports</a></li>
|
||||
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=add_message">Add message</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div> <!-- /#toolbar -->
|
||||
|
@ -241,6 +242,7 @@
|
|||
[% CASE 'suggestions' %]<span>Suggestions</span>
|
||||
[% CASE 'pos' %]<span>Point of sale</span>
|
||||
[% CASE 'report' %]<span>Reports</span>
|
||||
[% CASE 'add_message' %]<span>Add message</span>
|
||||
[% CASE %]<span>[% lette.module | html %]</span>
|
||||
[% END %]
|
||||
</td>
|
||||
|
@ -434,6 +436,11 @@
|
|||
[% ELSE %]
|
||||
<option value="report">Reports</option>
|
||||
[% END %]
|
||||
[% IF ( module == "add_message" ) %]
|
||||
<option value="add_message" selected="selected">Add message</option>
|
||||
[% ELSE %]
|
||||
<option value="add_message">Add message</option>
|
||||
[% END %]
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
|
|
Loading…
Reference in a new issue