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.

CommentFileSizeAuthor
#3 log_name_generate-2949445-1.patch329 bytesm.stenta
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

m.stenta created an issue. See original summary.

  • m.stenta committed 0adc8a0 on 7.x-1.x
    Issue #2949445: When a log name is generated, update the $log object so...
m.stenta’s picture

Status: Active » Fixed
FileSize
329 bytes

Done. And patch attached for Drush Make purposes.

m.stenta’s picture

Category: Feature request » Bug report

This was actually more of a bug report...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.