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.
Problem/Motivation
The quiz_update_max_score_properties() function changes quiz's max_score properties directly using raw SQL queries. This make contributed module can not have easy way to know when the max_score is changed.
Proposed resolution
- Add new function: quiz_update_single_max_score_property($quiz)
- Use new function in quiz_update_max_score_properties()
Make use of entity API here, we can remove usage of COALESCE function, which is only available in MySQL 5.6.
Comment | File | Size | Author |
---|---|---|---|
#5 | contributed_module_can-2374317-5.patch | 2.85 KB | djdevin |
|
Comments
Comment #1
djdevinComment #2
djdevinComment #5
djdevinComment #6
djdevinComment #8
djdevin