浏览代码

fix OtCustomizer controller actions

Olivier Massot 1 年之前
父节点
当前提交
343d3f6426
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ot_templating/Classes/Controller/OtCustomizerController.php

+ 2 - 2
ot_templating/Classes/Controller/OtCustomizerController.php

@@ -51,7 +51,7 @@ class OtCustomizerController extends SelectedSiteController {
         $queryBuilder->update('ot_websites')
             ->where($queryBuilder->expr()->eq('uid', $this->currentWebsite['uid']))
             ->set('template', $templateKey)
-            ->executeQuery();
+            ->executeStatement();
 
         // Clear the site's cache
         $this->otCacheManager->clearSiteCache($this->currentRootUid);
@@ -89,7 +89,7 @@ class OtCustomizerController extends SelectedSiteController {
         $queryBuilder->update('ot_websites')
             ->where($queryBuilder->expr()->eq('uid', $this->currentWebsite['uid']))
             ->set('template_preferences', json_encode($prefs))
-            ->executeQuery();
+            ->executeStatement();
 
         // Clear the site's cache
         $this->otCacheManager->clearSiteCache($this->currentRootUid);