https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35746

Brendan Lawlor <blaw...@clamsnet.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #165333|0                           |1
        is obsolete|                            |
 Attachment #165345|0                           |1
        is obsolete|                            |

--- Comment #35 from Brendan Lawlor <blaw...@clamsnet.org> ---
Created attachment 165659
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165659&action=edit
Bug 35746: add multiselect to report dropdowns

Rebased for changes to guided_reports_start.tt

This patch adds the ability to use multi select in report dropdowns.

It uses syntax similar to using a list and when using the :all option
WHERE i.homebranch in <<Select libraries|brnaches:in>>

Test plan:
1. Create an SQL report with with new syntax for multi select
    SELECT
    i.homebranch,
    count(*)
    FROM items i
    WHERE i.homebranch in <<Select libraries|branches:in>>
    GROUP BY i.homebranch
2. Save the report
3. Note that you get the error
    The authorized value category (branches:in) you selected does not exist.
4. Apply the patch and repeat steps 1 and 2
5. Note the report saves successfully
6. Run the report
7. Note the select dropdown is now a multiselect
8. Run the report with multiple selections
10. Click show SQL and note that multi select parameters get inserted into the
query like:
     WHERE i.homebranch in ('CPL', 'FFL', 'FPL')
11. Test other types of queries with multiple multi selects and lists etc

Sponsored-by: CLAMS

Signed-off-by: Andrew Fuerste-Henry <andre...@dubcolib.org>
Signed-off-by: Nick Clemens <n...@bywatersolutions.com>
Signed-off-by: Lucas Gass <lu...@bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to