Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am creating report with multiple parameters. A half is single checkboxes for parameter grouping. If I put checkbox parameter default value to 1, then when the report loads, other multiselect parameters which are below this checkbox in the parameter form are also defaulted to value 1(if they have value with 1). If I use default checkbox parameter for last one in tags then this problem does not occur.
Comment | File | Size | Author |
---|---|---|---|
#6 | 272737087-6-multivalue-default.patch | 476 bytes | metzlerd |
|
Comments
Comment #2
metzlerd CreditAttribution: metzlerd commentedI don't really understand what is being said here. Please include a report sample that demonstrates the problem.
Comment #3
janeks CreditAttribution: janeks as a volunteer commentedSee Frx file in attached zip file.
Look for parameter group_by_id_code. It has default parameter value: 1
No other params has.
Now if we call this report the data block is constructed correctly, but if we now look into parameter form then all parameters with lists that follows parameter group_by_id_code and has in their list a value 1 is also selected.
Comment #4
metzlerd CreditAttribution: metzlerd commentedI was able to reproduce this bug. Here is a patch.
Comment #5
metzlerd CreditAttribution: metzlerd commentedComment #6
metzlerd CreditAttribution: metzlerd commentedHere's a slight revision that's more inline with the way things are in d8.
Comment #7
janeks CreditAttribution: janeks as a volunteer commentedThank you - the patch fixed the problem.
Comment #8
metzlerd CreditAttribution: metzlerd commentedProper stting is reviewed and tested by community... I haven't committed the patch, so it isn't closed yet. Also is generally better to moved to fixed rather than closed(fixed) because it lets me see activity in the queue prior to closing (they move to closed automatically after two weeks of sitting at fixed.)
Comment #9
metzlerd CreditAttribution: metzlerd commentedThis has been committed and pushed... not sure why the commit messages aren't showing up here.