-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Admin_EditorTemplatesController_add #3338
add Admin_EditorTemplatesController_add #3338
Conversation
@ryuring レビューをお願いします。 |
@thangnnmd @HungDV2022 ありがとうございます。こちら問題ないですが、あと、afterAdd と beforeAdd のイベントが呼び出されるかのテストをお願いしたいです。
|
@ryuring afterAdd と beforeAdd のイベントは別PRを調整しました。確認お願いします |
@HungDV2022 |
@thangnnmd lỗi này là do a thiếu data trong db a nhé.
|
@ryuring レビューをお願いします |
$this->enableSecurityToken(); | ||
$this->enableCsrfToken(); | ||
|
||
SiteConfigFactory::make(['name' => 'editor', 'value' => 'BaserCore.BcCkeditor'])->persist(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HungDV2022 @thangnnmd この行は無くてもテストは動きませんか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryuring
#3338 (comment)
この行はなし場合は画像のようにエラーを発生しました。
確認お願いします。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HungDV2022 そのエラーが出る方が問題のような気がしますね。一度調べてみます。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HungDV2022 @thangnnmd 調べました。本体に問題がありました。
plugins/bc-editor-template/src/Controller/Admin/EditorTemplatesController.php を次のように修正してください。
76行目、119行目に return
を追加
return $this->redirect(['action' => 'index']);
87行目、130行目を削除(なくてもブラウザで正常に動作しました)
$this->viewBuilder()->addHelper(BcSiteConfig::get('editor'));
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
そうすると SiteConfigFactory
は不要になります。
@ryuring 確認お願いします。 |
ありがとうございます、マージします! |
add Admin_EditorTemplatesController_add