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

(-)a/C4/Creators/Batch.pm (-1 / +1 lines)
Lines 68-74 sub add_item { Link Here
68
    my $query = "INSERT INTO creator_batches (batch_id, description, $number_type, branch_code, creator) VALUES (?,?,?,?,?);";
68
    my $query = "INSERT INTO creator_batches (batch_id, description, $number_type, branch_code, creator) VALUES (?,?,?,?,?);";
69
    my $sth = C4::Context->dbh->prepare($query);
69
    my $sth = C4::Context->dbh->prepare($query);
70
#    $sth->{'TraceLevel'} = 3;
70
#    $sth->{'TraceLevel'} = 3;
71
    $sth->execute($self->{'batch_id'}, $number, $self->{'branch_code'}, $1);
71
    $sth->execute($self->{'batch_id'}, $self->{'description'}, $number, $self->{'branch_code'}, $1);
72
    if ($sth->err) {
72
    if ($sth->err) {
73
       warn sprintf('Database returned the following error on attempted INSERT: %s', $sth->errstr);
73
       warn sprintf('Database returned the following error on attempted INSERT: %s', $sth->errstr);
74
        return -1;
74
        return -1;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-1 / +6 lines)
Lines 126-131 Link Here
126
            };
126
            };
127
127
128
        $(document).ready(function() {
128
        $(document).ready(function() {
129
            [% IF table_loop %]
130
                $("#description").show();
131
            [% ELSE %]
132
                $("#description").hide();
133
            [% END %]
129
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
134
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
130
                "autoWidth": false,
135
                "autoWidth": false,
131
                "aoColumnDefs": [
136
                "aoColumnDefs": [
Lines 249-255 Link Here
249
                            <form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
254
                            <form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
250
                                <div>
255
                                <div>
251
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
256
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
252
                                    <ol><li>
257
                                    <ol><li id="description">
253
                                        <input type="hidden" name="op" value="add" />
258
                                        <input type="hidden" name="op" value="add" />
254
                                        <input type="hidden" name="batch_id" value="[% batch_id %]" />
259
                                        <input type="hidden" name="batch_id" value="[% batch_id %]" />
255
                                        <label for="description">Batch description: </label>
260
                                        <label for="description">Batch description: </label>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt (-2 / +6 lines)
Lines 115-120 Link Here
115
            };
115
            };
116
116
117
            $(document).ready(function() {
117
            $(document).ready(function() {
118
                [% IF table_loop %]
119
                    $("#description").show();
120
                [% ELSE %]
121
                    $("#description").hide();
122
                [% END %]
118
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
123
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
119
                "aoColumnDefs": [
124
                "aoColumnDefs": [
120
                    { "aTargets": [ -2, -1 ], "bSortable": false, "bSearchable": false }
125
                    { "aTargets": [ -2, -1 ], "bSortable": false, "bSearchable": false }
Lines 225-231 Link Here
225
                            <form name="add_by_bor_num" action="/cgi-bin/koha/patroncards/edit-batch.pl" method="post">
230
                            <form name="add_by_bor_num" action="/cgi-bin/koha/patroncards/edit-batch.pl" method="post">
226
                                <div>
231
                                <div>
227
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
232
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
228
                                    <ol><li>
233
                                    <ol><li id="description">
229
                                        <input type="hidden" name="op" value="add" />
234
                                        <input type="hidden" name="op" value="add" />
230
                                        <input type="hidden" name="batch_id" value="[% batch_id %]" />
235
                                        <input type="hidden" name="batch_id" value="[% batch_id %]" />
231
                                        <label for="description">Batch description: </label>
236
                                        <label for="description">Batch description: </label>
232
- 

Return to bug 15766