Navigation Menu

Skip to content

Commit

Permalink
Fixed issue #18085: Renamed custom theme not updated in global survey…
Browse files Browse the repository at this point in the history
… settings (#2436)
  • Loading branch information
gabrieljenik committed Jul 6, 2022
1 parent 8866d80 commit 3706e7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/models/Template.php
Expand Up @@ -656,6 +656,7 @@ public function renameTo($sNewName)
Yii::import('application.helpers.sanitize_helper', true);
$this->deleteAssetVersion();
Survey::model()->updateAll(array('template' => $sNewName), "template = :oldname", array(':oldname' => $this->name));
SurveysGroupsettings::model()->updateAll(['template' => $sNewName], "template = :oldname", [':oldname' => $this->name]);
Template::model()->updateAll(array('name' => $sNewName, 'folder' => $sNewName), "name = :oldname", array(':oldname' => $this->name));
Template::model()->updateAll(array('extends' => $sNewName), "extends = :oldname", array(':oldname' => $this->name));
TemplateConfiguration::rename($this->name, $sNewName);
Expand Down

0 comments on commit 3706e7d

Please sign in to comment.