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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt (-1 / +3 lines)
Lines 60-66 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
60
	<div class="yui-b">
60
	<div class="yui-b">
61
61
62
[% UNLESS ( add_form ) %]
62
[% UNLESS ( add_form ) %]
63
    [% IF (error_message) %]<p>[% error_message %]</p>[% END %]
63
    [% IF error_message == 'title_missing' %]
64
        <div class="dialog alert">Error: Required news title missing!</div>
65
    [% END %]
64
<div id="toolbar" class="btn-toolbar">
66
<div id="toolbar" class="btn-toolbar">
65
    <a class="btn btn-small" id="newentry" href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;lang=[% lang %]"><i class="icon-plus"></i> New entry</a>
67
    <a class="btn btn-small" id="newentry" href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;lang=[% lang %]"><i class="icon-plus"></i> New entry</a>
66
</div>
68
</div>
(-)a/tools/koha-news.pl (-2 / +1 lines)
Lines 119-125 elsif ( $op eq 'add' ) { Link Here
119
        print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl");
119
        print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl");
120
    }
120
    }
121
    else {
121
    else {
122
        print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl?error_message=ERROR:+Required+news+title+missing!");
122
        print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl?error_message=title_missing");
123
    }
123
    }
124
}
124
}
125
elsif ( $op eq 'edit' ) {
125
elsif ( $op eq 'edit' ) {
126
- 

Return to bug 12740