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

(-)a/C4/Letters.pm (-7 / +3 lines)
Lines 851-872 ENDSQL Link Here
851
851
852
  my @mtt = GetMessageTransportTypes();
852
  my @mtt = GetMessageTransportTypes();
853
853
854
  returns a list of hashes
854
  returns an arrayref of transport types
855
855
856
=cut
856
=cut
857
857
858
sub GetMessageTransportTypes {
858
sub GetMessageTransportTypes {
859
    my $dbh = C4::Context->dbh();
859
    my $dbh = C4::Context->dbh();
860
    my $sth = $dbh->prepare("
860
    my $mtts = $dbh->selectcol_arrayref("
861
        SELECT message_transport_type
861
        SELECT message_transport_type
862
        FROM message_transport_types
862
        FROM message_transport_types
863
        ORDER BY message_transport_type
863
        ORDER BY message_transport_type
864
    ");
864
    ");
865
    $sth->execute;
865
    return $mtts;
866
    my @mtts = map{
867
        $_->[0]
868
    } @{ $sth->fetchall_arrayref() };
869
    return \@mtts;
870
}
866
}
871
867
872
=head2 _add_attachements
868
=head2 _add_attachements
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +1 lines)
Lines 8295-8301 if ( CheckVersion($DBversion) ) { Link Here
8295
        }
8295
        }
8296
    }
8296
    }
8297
8297
8298
    print "Upgrade done (Bug 9016: Adds the association table overduerules_transport_types)\n";
8298
    print "Upgrade done (Bug 9016: Adds multi transport types management for notices)\n";
8299
    SetVersion($DBversion);
8299
    SetVersion($DBversion);
8300
}
8300
}
8301
8301
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-3 / +2 lines)
Lines 34-40 $(document).ready(function() { Link Here
34
                 || ( title.length > 0 && content.length == 0 )
34
                 || ( title.length > 0 && content.length == 0 )
35
            ) {
35
            ) {
36
                var mtt = $(this).find('input[name="message_transport_type"]').val();
36
                var mtt = $(this).find('input[name="message_transport_type"]').val();
37
                var msg = _("You must specify a title and a content for %s");
37
                var msg = _("Please specify title and content for %s");
38
                msg = msg.replace( "%s", mtt );
38
                msg = msg.replace( "%s", mtt );
39
                alert(msg)
39
                alert(msg)
40
                event.preventDefault();
40
                event.preventDefault();
Lines 95-101 $(document).ready(function() { Link Here
95
                        chaineAj += $(this).val();
95
                        chaineAj += $(this).val();
96
                    }
96
                    }
97
                } );
97
                } );
98
                $(myQuery).insertAtCaret(chaineAj);
98
                $(myQuery).insertAtCaret("<<" + chaineAj + ">>");
99
            }
99
            }
100
        }
100
        }
101
	[% END %]
101
	[% END %]
102
- 

Return to bug 9016