Bugzilla – Attachment 14184 Details for
Bug 7919
Display of values depending on the connexion library (authorised values, patron categories, extended attributes)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7919: FIX the "all" categories method
Bug-7919-FIX-the-all-categories-method.patch (text/plain), 1.11 KB, created by
Chris Cormack
on 2012-12-18 08:46:05 UTC
(
hide
)
Description:
Bug 7919: FIX the "all" categories method
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-12-18 08:46:05 UTC
Size:
1.11 KB
patch
obsolete
>From b0f0beddb62704bb193e5eed892635ff50b6cc31 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 17 Dec 2012 11:04:07 +0100 >Subject: [PATCH] Bug 7919: FIX the "all" categories method > >The C4::Category->all method must return fields from the categories >table only. >Without this patch, there is 2 "categorycode" values, the second one is >sometimes undef (if no branch limitation). > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > C4/Category.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Category.pm b/C4/Category.pm >index fcb3ed8..255db2b 100644 >--- a/C4/Category.pm >+++ b/C4/Category.pm >@@ -79,7 +79,7 @@ sub all { > my $dbh = C4::Context->dbh; > # The categories table is small enough for > # `SELECT *` to be harmless. >- my $query = "SELECT * FROM categories"; >+ my $query = "SELECT categories.* FROM categories"; > $query .= qq{ > LEFT JOIN categories_branches ON categories_branches.categorycode = categories.categorycode > WHERE categories_branches.branchcode = ? OR categories_branches.branchcode IS NULL >-- >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 7919
:
8939
|
9170
|
9973
|
9984
|
10424
|
11163
|
11168
|
11373
|
11751
|
13736
|
13862
|
13867
|
13868
|
13891
|
13901
|
13952
|
13953
|
14162
|
14163
|
14184
|
14287
|
14350
|
14372
|
14377