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

(-)a/C4/RotatingCollections.pm (-6 / +4 lines)
Lines 88-96 sub CreateCollection { Link Here
88
    if ( !$title ) {
88
    if ( !$title ) {
89
        return ( 0, 1, "NO_TITLE" );
89
        return ( 0, 1, "NO_TITLE" );
90
    }
90
    }
91
    if ( !$description ) {
91
92
        return ( 0, 2, "NO_DESCRIPTION" );
92
    $description ||= q{};
93
    }
94
93
95
    my $success = 1;
94
    my $success = 1;
96
95
Lines 135-146 sub UpdateCollection { Link Here
135
    if ( !$title ) {
134
    if ( !$title ) {
136
        return ( 0, 2, "NO_TITLE" );
135
        return ( 0, 2, "NO_TITLE" );
137
    }
136
    }
138
    if ( !$description ) {
139
        return ( 0, 3, "NO_DESCRIPTION" );
140
    }
141
137
142
    my $dbh = C4::Context->dbh;
138
    my $dbh = C4::Context->dbh;
143
139
140
    $description ||= q{};
141
144
    my $sth;
142
    my $sth;
145
    $sth = $dbh->prepare(
143
    $sth = $dbh->prepare(
146
        "UPDATE collections
144
        "UPDATE collections
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt (-7 / +4 lines)
Lines 108-120 Link Here
108
                                    [% END %]
108
                                    [% END %]
109
                                </li>
109
                                </li>
110
                                <li>
110
                                <li>
111
                                    <label class="required" for="description">Description: </label>
111
                                    <label for="description">Description: </label>
112
                                    [% IF (editColDescription ) %]
112
                                    [% IF (editColDescription ) %]
113
                                        <input type="text" size="50" name="description" value="[% editColDescription %]" required="required" />
113
                                        <input type="text" size="50" name="description" value="[% editColDescription %]" />
114
                                        <span class="required">Required</span>
115
                                    [% ELSE %]
114
                                    [% ELSE %]
116
                                        <input type="text" size="50" name="description" required="required" />
115
                                        <input type="text" size="50" name="description" />
117
                                        <span class="required">Required</span>
118
                                    [% END %]
116
                                    [% END %]
119
                                </li>
117
                                </li>
120
                            </ol>
118
                            </ol>
Lines 132-135 Link Here
132
            [% INCLUDE 'tools-menu.inc' %]
130
            [% INCLUDE 'tools-menu.inc' %]
133
        </div>
131
        </div>
134
    </div> <!-- /#bd -->
132
    </div> <!-- /#bd -->
135
[% INCLUDE 'intranet-bottom.inc' %]
133
[% INCLUDE 'intranet-bottom.inc' %]
136
- 

Return to bug 8836