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

(-)a/C4/Letters.pm (-7 / +3 lines)
Lines 849-870 ENDSQL Link Here
849
849
850
  my @mtt = GetMessageTransportTypes();
850
  my @mtt = GetMessageTransportTypes();
851
851
852
  returns a list of hashes
852
  returns an arrayref of transport types
853
853
854
=cut
854
=cut
855
855
856
sub GetMessageTransportTypes {
856
sub GetMessageTransportTypes {
857
    my $dbh = C4::Context->dbh();
857
    my $dbh = C4::Context->dbh();
858
    my $sth = $dbh->prepare("
858
    my $mtts = $dbh->selectcol_arrayref("
859
        SELECT message_transport_type
859
        SELECT message_transport_type
860
        FROM message_transport_types
860
        FROM message_transport_types
861
        ORDER BY message_transport_type
861
        ORDER BY message_transport_type
862
    ");
862
    ");
863
    $sth->execute;
863
    return $mtts;
864
    my @mtts = map{
865
        $_->[0]
866
    } @{ $sth->fetchall_arrayref() };
867
    return \@mtts;
868
}
864
}
869
865
870
=head2 _add_attachements
866
=head2 _add_attachements
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +1 lines)
Lines 8065-8071 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
8065
        }
8065
        }
8066
    }
8066
    }
8067
8067
8068
    print "Upgrade done (Bug 9016: Adds the association table overduerules_transport_types)\n";
8068
    print "Upgrade done (Bug 9016: Adds multi transport types management for notices)\n";
8069
    SetVersion($DBversion);
8069
    SetVersion($DBversion);
8070
}
8070
}
8071
8071
(-)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