projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 8435: DBRev 3.13.00.038
[koha.git]
/
tools
/
koha-news.pl
diff --git
a/tools/koha-news.pl
b/tools/koha-news.pl
index
ff4a32f
..
4dd07a9
100755
(executable)
--- a/
tools/koha-news.pl
+++ b/
tools/koha-news.pl
@@
-74,11
+74,12
@@
my $op = $cgi->param('op');
if ( $op eq 'add_form' ) {
$template->param( add_form => 1 );
if ($id) {
if ( $op eq 'add_form' ) {
$template->param( add_form => 1 );
if ($id) {
+ if($new_detail->{lang} eq "slip"){ $template->param( slip => 1); }
$template->param(
op => 'edit',
id => $new_detail->{'idnew'}
);
$template->param(
op => 'edit',
id => $new_detail->{'idnew'}
);
- $template->
param($new_detail)
;
+ $template->
{VARS}->{'new_detail'} = $new_detail
;
}
else {
$template->param( op => 'add' );
}
else {
$template->param( op => 'add' );
@@
-117,8
+118,4
@@
else {
opac_news_count => $opac_news_count,
);
}
opac_news_count => $opac_news_count,
);
}
-$template->param(
- DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
- dateformat => C4::Context->preference("dateformat"),
- );
output_html_with_http_headers $cgi, $cookie, $template->output;
output_html_with_http_headers $cgi, $cookie, $template->output;