[Bug 44183] New: Add default values to parameters
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44183 Bug ID: 44183 Summary: Add default values to parameters Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Reports Assignee: koha-bugs@lists.koha-community.org Reporter: cbrannon@cdalibrary.org QA Contact: testopia@bugs.koha-community.org CC: lisette@bywatersolutions.com Target Milestone: --- Right now we have to use jQuery to inject defaults into reports if we want them. It would be helpful if parameters in Koha SQL would allow us to define defaults. For example: WHERE somedate BETWEEN <<Start Date|date>> AND <<End Date|date>> could turn into this: WHERE somedate BETWEEN <<Start Date|date|'2026-10-01'>> AND <<End Date|date|'2027-10-01'>> The challenge would be to determine what the value represents, because in this example, you might not choose to use the calendar tool. So then it would need to be defined as: WHERE somedate BETWEEN <<Start Date||'2026-10-01'>> AND <<End Date||'2027-10-01'>> I could see default values being used on any parameters, not just dates. branchcode Like <<Library|branches|'COEUR'>> -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org