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 function log_name_generate()
generates a name for the log based on token replacements. Currently, it updates the log's name directly in the database. But if the log entity has been loaded elsewhere in the code, it may still be using the cached version, which has the old name.
Proposed resolution
In log_name_generate()
, also update the name on the $log
object that is passed in. This will make that name available to downstream code.
Comment | File | Size | Author |
---|---|---|---|
#3 | log_name_generate-2949445-1.patch | 329 bytes | m.stenta |
Comments
Comment #3
m.stentaDone. And patch attached for Drush Make purposes.
Comment #4
m.stentaThis was actually more of a bug report...