Summary: | Incorrect GROUP BY clause in SearchCourses | ||
---|---|---|---|
Product: | Koha | Reporter: | Nick Clemens (kidclamp) <nick> |
Component: | Course reserves | Assignee: | Jonathan Druart <jonathan.druart> |
Status: | CLOSED FIXED | QA Contact: | Marcel de Rooy <m.de.rooy> |
Severity: | major | ||
Priority: | P5 - low | CC: | fridolin.somers, jonathan.druart, m.de.rooy, martin.renvoize |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Small patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | |||
Bug Blocks: | 17258 | ||
Attachments: |
Bug 21603: Remove incorrect GROUP BY from C4::CourseReserves
Bug 21603: Remove incorrect GROUP BY from C4::CourseReserves Bug 21603: Remove incorrect GROUP BY from C4::CourseReserves |
Description
Nick Clemens (kidclamp)
2018-10-18 13:44:47 UTC
'koha_kohadev.c.department' isn't in GROUP BY then later: Can't use an undefined value as an ARRAY reference at /usr/lib/x86_64-linux-gnu/perl5/5.20/DBI.pm line 2064 Created attachment 80884 [details] [review] Bug 21603: Remove incorrect GROUP BY from C4::CourseReserves 'koha_kohadev.c.department' isn't in GROUP BY Test plan: Prove that the test fail without this patch and pass with this patch applied (switch on the SQL modes) Created attachment 81163 [details] [review] Bug 21603: Remove incorrect GROUP BY from C4::CourseReserves 'koha_kohadev.c.department' isn't in GROUP BY Test plan: Prove that the test fail without this patch and pass with this patch applied (switch on the SQL modes) Signed-off-by: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> Created attachment 81263 [details] [review] Bug 21603: Remove incorrect GROUP BY from C4::CourseReserves 'koha_kohadev.c.department' isn't in GROUP BY Test plan: Prove that the test fail without this patch and pass with this patch applied (switch on the SQL modes) Signed-off-by: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> > Prove that the test fail without this patch and pass with this patch
> applied (switch on the SQL modes)
Could not reproduce the warning with strict_sql_modes..
Lower severity ?
(In reply to Marcel de Rooy from comment #5) > > Prove that the test fail without this patch and pass with this patch > > applied (switch on the SQL modes) > > Could not reproduce the warning with strict_sql_modes.. > Lower severity ? The test plan is not cleared: you should - apply the new test (so manually) - prove the new test fails - apply the pm changes - prove the new test passes I should have provided two patches. Awesome work all! Pushed to master for 18.11 Pushed to 18.05.x for 18.05.06 I pass for sql modes in 17.11.x |