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.
Hello, when I select values from the dropdown lists for the "Type specific boosting" processor (example: 21 for content, 5 for taxonomy and 1 for files), when I save, the values return to 0.
Someone could help me?
Comment | File | Size | Author |
---|---|---|---|
#8 | 3247914-8--type_specific_boost_settings_not_saved.patch | 5.43 KB | drunken monkey |
| |||
#8 | 3247914-8--type_specific_boost_settings_not_saved--tests_only.patch | 3.31 KB | drunken monkey |
Comments
Comment #2
s.perilhou CreditAttribution: s.perilhou commentedHi !
Same problem here
Problem
Updated today from 1.20 to 1.21 with the new boost selection (#3201305).
Found that default boost in type-specific boosting screen configuration are all "0.00". Seems that the #default_value is not formatted. Bundles are ok.
Steps to reproduce
Proposed resolution
Format default value in TypeBoost::buildConfigurationForm
Comment #3
superman369 CreditAttribution: superman369 commentedWe also have the same issue in version 8.x-1.21.
Comment #4
gaddman CreditAttribution: gaddman commenteds.perilhou's fix works for the case where a value is set, but still doesn't correctly display or save values where "Use datasource default" has been chosen - these show as 0 and after a save are set to 0.
Comment #5
drunken monkeyThanks a lot for reporting this problem, and sorry it took me this long to get back to you.
I could easily reproduce the problem, the attached patch should fix it. Please test/review!
Comment #8
drunken monkeyComment #10
gaddman CreditAttribution: gaddman commentedTested latest patch in comment #8 and resolves issue for me.
Comment #11
amaria CreditAttribution: amaria commentedWorks for me as well.
Comment #13
drunken monkeyThanks for the feedback, and sorry for the long delay.
Committed. Thanks again, everyone!
Comment #14
drunken monkey