Skip to content

Commit

Permalink
Change in the category is audited. BugzID: 113172
Browse files Browse the repository at this point in the history
  • Loading branch information
taitetsu committed Dec 10, 2015
1 parent 1eb5f74 commit b421b99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/MT/CMS/Category.pm
Expand Up @@ -284,6 +284,11 @@ sub bulk_update {
$app->run_callbacks( 'cms_pre_save.' . $model,
$app, $updated, $original )
or return $app->json_error( $app->errstr() );

# Setting modified_by updates modified_on which we want to do before
# a save but after pre_save callbacks fire.
$updated->modified_by( $app->user->id );

$updated->save;
$app->run_callbacks( 'cms_post_save.' . $model,
$app, $updated, $original )
Expand Down

0 comments on commit b421b99

Please sign in to comment.