Bugzilla – Attachment 20482 Details for
Bug 10764
Update POD of C4::Items::GetItemStatus() to use TT syntax
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10764 - Update POD of C4::Items::GetItemStatus() to use TT syntax
Bug-10764---Update-POD-of-C4ItemsGetItemStatus-to-.patch (text/plain), 1.49 KB, created by
Owen Leonard
on 2013-08-19 15:39:19 UTC
(
hide
)
Description:
Bug 10764 - Update POD of C4::Items::GetItemStatus() to use TT syntax
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-08-19 15:39:19 UTC
Size:
1.49 KB
patch
obsolete
>From da9e86d7e548fb2b83df54b124d8bd0cb5932832 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 19 Aug 2013 11:37:55 -0400 >Subject: [PATCH] Bug 10764 - Update POD of C4::Items::GetItemStatus() to use > TT syntax >Content-Type: text/plain; charset="utf-8" > >This patch updates the example template syntax in the POD for >C4::Items::GetItemStatus() to use Template Toolkit syntax. > >To test, view the POD for C4::Items::GetItemStatus() and confirm that it >looks correct. >--- > C4/Items.pm | 16 ++++++++++------ > 1 file changed, 10 insertions(+), 6 deletions(-) > >diff --git a/C4/Items.pm b/C4/Items.pm >index 212a9d3..64db262 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -751,12 +751,16 @@ Create a status selector with the following code > > =head3 in TEMPLATE > >- <select name="statusloop"> >- <option value="">Default</option> >- <!-- TMPL_LOOP name="statusloop" --> >- <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="statusname" --></option> >- <!-- /TMPL_LOOP --> >- </select> >+<select name="statusloop" id="statusloop"> >+ <option value="">Default</option> >+ [% FOREACH statusloo IN statusloop %] >+ [% IF ( statusloo.selected ) %] >+ <option value="[% statusloo.value %]" selected="selected">[% statusloo.statusname %]</option> >+ [% ELSE %] >+ <option value="[% statusloo.value %]">[% statusloo.statusname %]</option> >+ [% END %] >+ [% END %] >+</select> > > =cut > >-- >1.7.9.5
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 10764
:
20482
|
20494
|
20500