Bugzilla – Attachment 39915 Details for
Bug 14329
Useless copy/paste from Template::Plugin::HtmlToText
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14329: Useless copy/pasta from Template::Plugin::HtmlToText
Bug-14329-Useless-copypasta-from-TemplatePluginHtm.patch (text/plain), 3.25 KB, created by
Mark Tompsett
on 2015-06-05 17:34:25 UTC
(
hide
)
Description:
Bug 14329: Useless copy/pasta from Template::Plugin::HtmlToText
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2015-06-05 17:34:25 UTC
Size:
3.25 KB
patch
obsolete
>From 33ace06c9e51c301e4cb9f4640a2d48ee71e758b Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 4 Jun 2015 12:03:42 +0200 >Subject: [PATCH] Bug 14329: Useless copy/pasta from > Template::Plugin::HtmlToText > >The synopsis of this TT plugin contains two example lines: >[% myhtml FILTER html2text(leftmargin => 0, rightmargin => 0) %] >[% myhtmltext | html2text %] > >These lines have been copied (without too much thought :) to a few templates. Since we do no use the variables myhtml or myhtmltext in these templates, these lines are useless. > >Test plan: >[1] Put some items in your cart. And send it. >[2] Send a shelf. >[3] Git grep on myhtml. Should not have results. > >NOTE: Sent carts and lists in Intranet and OPAC successfully. > Though, this does bring into question why the letters > have HTML formatting if it is getting removed. That, > however, is beyond the scope of this bug. > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt | 2 -- > koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt | 2 -- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt | 2 -- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt | 2 -- > 4 files changed, 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt >index 0514bc1..c99b54e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt >@@ -3,8 +3,6 @@ Your cart > <END_SUBJECT> > > [% USE HtmlToText %] >-[% myhtml FILTER html2text(leftmargin => 0, rightmargin => 0) %] >-[% myhtmltext | html2text %] > > <HEADER> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt >index f3738f4..b70dac9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt >@@ -3,8 +3,6 @@ Your list: [% shelfname %] > <END_SUBJECT> > > [% USE HtmlToText %] >-[% myhtml FILTER html2text(leftmargin => 0, rightmargin => 0) %] >-[% myhtmltext | html2text %] > > <HEADER> > [% FILTER html2text %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt >index 29c4cbb..e3c88ab 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt >@@ -3,8 +3,6 @@ Your cart > <END_SUBJECT> > > [% USE HtmlToText %] >-[% myhtml FILTER html2text(leftmargin => 0, rightmargin => 0) %] >-[% myhtmltext | html2text %] > > <HEADER> > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt >index 91041bb..4c7f5d4 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt >@@ -3,8 +3,6 @@ Your list : [% shelfname %] > <END_SUBJECT> > > [% USE HtmlToText %] >-[% myhtml FILTER html2text(leftmargin => 0, rightmargin => 0) %] >-[% myhtmltext | html2text %] > > <HEADER> > [% FILTER html2text %] >-- >2.1.4
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 14329
:
39838
|
39915
|
39940