Bugzilla – Attachment 31806 Details for
Bug 12740
It should not be possible to store empty news
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12740: Make the error message translatable
Bug-12740-Make-the-error-message-translatable.patch (text/plain), 1.80 KB, created by
Jonathan Druart
on 2014-09-22 07:56:50 UTC
(
hide
)
Description:
Bug 12740: Make the error message translatable
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-09-22 07:56:50 UTC
Size:
1.80 KB
patch
obsolete
>From e0c611f580b71627522416fe8f7b4f2e6fe21588 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 22 Sep 2014 09:55:44 +0200 >Subject: [PATCH] Bug 12740: Make the error message translatable > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt | 4 +++- > tools/koha-news.pl | 2 +- > 2 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt >index dda0738..c4a17d9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt >@@ -60,7 +60,9 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> > <div class="yui-b"> > > [% UNLESS ( add_form ) %] >- [% IF (error_message) %]<p>[% error_message %]</p>[% END %] >+ [% IF error_message == 'title_missing' %] >+ <div class="dialog alert">Error: Required news title missing!</div> >+ [% END %] > <div id="toolbar" class="btn-toolbar"> > <a class="btn btn-small" id="newentry" href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&lang=[% lang %]"><i class="icon-plus"></i> New entry</a> > </div> >diff --git a/tools/koha-news.pl b/tools/koha-news.pl >index 42dd149..1859deb 100755 >--- a/tools/koha-news.pl >+++ b/tools/koha-news.pl >@@ -119,7 +119,7 @@ elsif ( $op eq 'add' ) { > print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl"); > } > else { >- print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl?error_message=ERROR:+Required+news+title+missing!"); >+ print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl?error_message=title_missing"); > } > } > elsif ( $op eq 'edit' ) { >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12740
:
30647
|
31579
|
31788
|
31789
|
31790
|
31791
|
31804
|
31805
| 31806