Bugzilla – Attachment 108128 Details for
Bug 26194
Messages about missing cash registers should link to cash register management
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26194: (follow-up) Default to current branch
Bug-26194-follow-up-Default-to-current-branch.patch (text/plain), 1.84 KB, created by
Martin Renvoize
on 2020-08-12 15:10:11 UTC
(
hide
)
Description:
Bug 26194: (follow-up) Default to current branch
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2020-08-12 15:10:11 UTC
Size:
1.84 KB
patch
obsolete
>From d9de352aa55962989854b623401b404921c51c36 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 12 Aug 2020 16:07:05 +0100 >Subject: [PATCH] Bug 26194: (follow-up) Default to current branch > >When adding a new register, it would be helpful to default to the >current logged in branch. >--- > .../intranet-tmpl/prog/en/modules/admin/cash_registers.tt | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt >index 3d9b8b7aa6..97c10e56dc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt >@@ -86,12 +86,10 @@ > <li> > <label for="branch">Library: </label> > <select id="branch" name="branch"> >- [% FOREACH branch IN branch_list %] >- [% IF cash_register.branch == branch.branchcode %] >- <option value="[% branch.branchcode | html %]" selected="1">[% branch.branchname | html %]</option> >+ [% IF cash_register %] >+ [% PROCESS options_for_libraries libraries => Branches.all( selected => cash_register.branch ) %] > [% ELSE %] >- <option value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option> >- [% END %] >+ [% PROCESS options_for_libraries libraries => Branches.all() %] > [% END %] > </select> > </li> >-- >2.20.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 26194
:
108092
|
108127
|
108128
|
108313
|
108314