Bugzilla – Attachment 44257 Details for
Bug 15093
item type groups not saving
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15093: Load/show saved item type group and hideinopac
Bug-15093-Loadshow-saved-item-type-group-and-hidei.patch (text/plain), 2.37 KB, created by
Nicole C. Engard
on 2015-10-30 19:48:08 UTC
(
hide
)
Description:
Bug 15093: Load/show saved item type group and hideinopac
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2015-10-30 19:48:08 UTC
Size:
2.37 KB
patch
obsolete
>From 2eca89307fb6f4d1e836b896caf4a99ac079bc86 Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Fri, 30 Oct 2015 16:25:15 -0300 >Subject: [PATCH] Bug 15093: Load/show saved item type group and hideinopac > >This patch adds loading of hideinopac and searchgroup >when showing/editing itemtypes > >To test: >1) Put some values in ITEMTYPCAT auth value >2) Edit an item type, select a value for >search category & check 'Hide in OPAC' >Save >3) Results do no show on list of item types >4) Edit same item type, values are default/empty >5) Apply the patch >6) Edit again, change again, save >Now values shows in list >7) Edit again, values are now correct > >Values were saved on db, but not loaded from it >How this happen? > >Side note: searching for searchcategory I found > >installer/data/mysql/kohastructure.sql: searchcategory varchar(80) default NULL, -- Group this item type with others w >installer/data/mysql/updatedatabase.pl: ADD searchcategory VARCHAR(20) DEFAULT NULL > >Its varchar(80) in kohastructure and varchar(20) in updatedatabase > >We need more eyes :) > >Signed-off-by: Nicole Engard <nengard@bywatersolutions.com> >--- > C4/Koha.pm | 2 ++ > admin/itemtypes.pl | 2 ++ > 2 files changed, 4 insertions(+) > >diff --git a/C4/Koha.pm b/C4/Koha.pm >index 0a90bb3..7476106 100644 >--- a/C4/Koha.pm >+++ b/C4/Koha.pm >@@ -263,6 +263,8 @@ sub GetItemTypes { > itemtypes.checkinmsg, > itemtypes.checkinmsgtype, > itemtypes.sip_media_type, >+ itemtypes.hideinopac, >+ itemtypes.searchcategory, > COALESCE( localization.translation, itemtypes.description ) AS translated_description > FROM itemtypes > LEFT JOIN localization ON itemtypes.itemtype = localization.code >diff --git a/admin/itemtypes.pl b/admin/itemtypes.pl >index 2af82a3..9e2fdfe 100755 >--- a/admin/itemtypes.pl >+++ b/admin/itemtypes.pl >@@ -99,6 +99,8 @@ if ( $op eq 'add_form' ) { > itemtypes.checkinmsg, > itemtypes.checkinmsgtype, > itemtypes.sip_media_type, >+ itemtypes.hideinopac, >+ itemtypes.searchcategory, > COALESCE( localization.translation, itemtypes.description ) AS translated_description > FROM itemtypes > LEFT JOIN localization ON itemtypes.itemtype = localization.code >-- >1.7.10.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 15093
:
44256
|
44257
|
44272