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 125-130 Link Here
125
            };
125
            };
126
126
127
        $(document).ready(function() {
127
        $(document).ready(function() {
128
            [% IF table_loop %]
129
                $("#description").show();
130
            [% ELSE %]
131
                $("#description").hide();
132
            [% END %]
128
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
133
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
129
                "autoWidth": false,
134
                "autoWidth": false,
130
                "aoColumnDefs": [
135
                "aoColumnDefs": [
Lines 232-238 Link Here
232
                            <form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
237
                            <form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
233
                                <div>
238
                                <div>
234
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
239
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
235
                                    <ol><li>
240
                                    <ol><li id="description">
236
                                        <input type="hidden" name="op" value="add" />
241
                                        <input type="hidden" name="op" value="add" />
237
                                        <input type="hidden" name="batch_id" value="[% batch_id %]" />
242
                                        <input type="hidden" name="batch_id" value="[% batch_id %]" />
238
                                        <label for="description">Batch description: </label>
243
                                        <label for="description">Batch description: </label>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt (-2 / +6 lines)
Lines 112-117 Link Here
112
            };
112
            };
113
113
114
            $(document).ready(function() {
114
            $(document).ready(function() {
115
                [% IF table_loop %]
116
                    $("#description").show();
117
                [% ELSE %]
118
                    $("#description").hide();
119
                [% END %]
115
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
120
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
116
                "aoColumnDefs": [
121
                "aoColumnDefs": [
117
                    { "aTargets": [ -2, -1 ], "bSortable": false, "bSearchable": false }
122
                    { "aTargets": [ -2, -1 ], "bSortable": false, "bSearchable": false }
Lines 220-226 Link Here
220
                            <form name="add_by_bor_num" action="/cgi-bin/koha/patroncards/edit-batch.pl" method="post">
225
                            <form name="add_by_bor_num" action="/cgi-bin/koha/patroncards/edit-batch.pl" method="post">
221
                                <div>
226
                                <div>
222
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
227
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
223
                                    <ol><li>
228
                                    <ol><li id="description">
224
                                        <input type="hidden" name="op" value="add" />
229
                                        <input type="hidden" name="op" value="add" />
225
                                        <input type="hidden" name="batch_id" value="[% batch_id %]" />
230
                                        <input type="hidden" name="batch_id" value="[% batch_id %]" />
226
                                        <label for="description">Batch description: </label>
231
                                        <label for="description">Batch description: </label>
227
- 

Return to bug 15766