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 60-66 Link Here
60
                            <form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
60
                            <form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
61
                                <div>
61
                                <div>
62
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
62
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
63
                                    <ol><li>
63
                                    <ol><li id="description">
64
                                        <input type="hidden" name="op" value="add" />
64
                                        <input type="hidden" name="op" value="add" />
65
                                        <input type="hidden" name="batch_id" value="[% batch_id | html %]" />
65
                                        <input type="hidden" name="batch_id" value="[% batch_id | html %]" />
66
                                        <label for="description">Batch description: </label>
66
                                        <label for="description">Batch description: </label>
Lines 280-285 Link Here
280
        }
280
        }
281
281
282
         $(document).ready(function() {
282
         $(document).ready(function() {
283
            [% IF table_loop %]
284
                $("#description").show();
285
            [% ELSE %]
286
                $("#description").hide();
287
            [% END %]
283
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
288
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
284
                "autoWidth": false,
289
                "autoWidth": false,
285
                "aoColumnDefs": [
290
                "aoColumnDefs": [
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt (-2 / +6 lines)
Lines 44-50 Link Here
44
                            <form name="add_by_bor_num" action="/cgi-bin/koha/patroncards/edit-batch.pl" method="post">
44
                            <form name="add_by_bor_num" action="/cgi-bin/koha/patroncards/edit-batch.pl" method="post">
45
                                <div>
45
                                <div>
46
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
46
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
47
                                    <ol><li>
47
                                    <ol><li id="description">
48
                                        <input type="hidden" name="op" value="add" />
48
                                        <input type="hidden" name="op" value="add" />
49
                                        <input type="hidden" name="batch_id" value="[% batch_id | html %]" />
49
                                        <input type="hidden" name="batch_id" value="[% batch_id | html %]" />
50
                                        <label for="description">Batch description: </label>
50
                                        <label for="description">Batch description: </label>
Lines 230-235 Link Here
230
        };
230
        };
231
231
232
        $(document).ready(function() {
232
        $(document).ready(function() {
233
            [% IF table_loop %]
234
                $("#description").show();
235
            [% ELSE %]
236
                $("#description").hide();
237
            [% END %]
233
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
238
            $("#batcht").dataTable($.extend(true, {}, dataTablesDefaults, {
234
                "aoColumnDefs": [
239
                "aoColumnDefs": [
235
                    { "aTargets": [ -2, -1 ], "bSortable": false, "bSearchable": false }
240
                    { "aTargets": [ -2, -1 ], "bSortable": false, "bSearchable": false }
236
- 

Return to bug 15766