Bugzilla – Attachment 4211 Details for
Bug 6306
It is not possible edit news
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-SIGNED-OFF-Fix-for-Bug-6306-It-is-not-possible-edit-.patch (text/plain), 3.73 KB, created by
Katrin Fischer
on 2011-05-20 21:24:30 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2011-05-20 21:24:30 UTC
Size:
3.73 KB
patch
obsolete
>From 194770ff4d563c61af61ddf6d0572f41205c2e15 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 20 May 2011 15:38:51 -0400 >Subject: [PATCH] [SIGNED-OFF] Fix for Bug 6306 - It is not possible edit news >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >--- > .../prog/en/modules/tools/koha-news.tt | 12 ++++++------ > tools/koha-news.pl | 2 +- > 2 files changed, 7 insertions(+), 7 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 19242ed..57a545e 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 >@@ -82,11 +82,11 @@ Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]</div> > </li> > <li> > <label for="title">Title</label> >- <input id="title" size="30" type="text" name="title" value="[% title %]" /> >+ <input id="title" size="30" type="text" name="title" value="[% new_detail.title %]" /> > </li> > <li> > <label for="timestamp">Publication date</label> >- <input id="timestamp" type="text" name="timestamp" size="15" value="[% timestamp %]" /> >+ <input id="timestamp" type="text" name="timestamp" size="15" value="[% new_detail.timestamp %]" /> > <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="timestampButton" style="cursor: pointer;" /> > <script type="text/javascript"> > Calendar.setup( >@@ -101,7 +101,7 @@ Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]</div> > </li> > <li> > <label for="expirationdate">Expiration date</label> >- <input id="expirationdate" type="text" name="expirationdate" size="15" value="[% expirationdate %]" /> >+ <input id="expirationdate" type="text" name="expirationdate" size="15" value="[% new_detail.expirationdate %]" /> > <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendar" style="cursor: pointer;" /> > <script type="text/javascript"> > Calendar.setup( >@@ -116,14 +116,14 @@ Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]</div> > </li> > <li> > <label for="number">Appear in position </label> >- [% IF ( number ) %] >- <input id="number" size="3" name="number" type="text" checked="checked" value="[% number %]" /> >+ [% IF ( new_detail.number ) %] >+ <input id="number" size="3" name="number" type="text" checked="checked" value="[% new_detail.number %]" /> > [% ELSE %] > <input id="number" size="3" name="number" type="text" /> > [% END %] > </li> > <li><label for="new">News</label> >- <textarea name="new" id="new" cols="75" rows="10">[% new %]</textarea></li> >+ <textarea name="new" id="new" cols="75" rows="10">[% new_detail.new %]</textarea></li> > </ol> > </fieldset> > >diff --git a/tools/koha-news.pl b/tools/koha-news.pl >index 2451934..afc5268 100755 >--- a/tools/koha-news.pl >+++ b/tools/koha-news.pl >@@ -79,7 +79,7 @@ if ( $op eq 'add_form' ) { > op => 'edit', > id => $new_detail->{'idnew'} > ); >- $template->param($new_detail); >+ $template->{VARS}->{'new_detail'} = $new_detail; > } > else { > $template->param( op => 'add' ); >-- >1.7.4.1 >
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 6306
:
4205
| 4211