Skip to content

Commit

Permalink
Merge pull request #1843 from kaburk/dev-4-1842
Browse files Browse the repository at this point in the history
fix #1842 【ページ】管理画面 でお気に入りに登録できない(JSエラーになる) 問題を改善
  • Loading branch information
gondoh authored Jul 21, 2022
2 parents b0f2fc5 + 9a5d8c7 commit 36c1f43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Baser/Event/BcContentsEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ public function formBeforeCreate(CakeEvent $event)
public function formAfterCreate(CakeEvent $event)
{
if (!BcUtil::isAdminSystem()) {
return '';
return;
}
$View = $event->subject();
if ($event->data['id'] === 'FavoriteAdminEditForm' || $event->data['id'] === 'PermissionAdminEditForm') {
return '';
return;
}
if (!preg_match('/(AdminAddForm|AdminEditForm|AdminEditAliasForm)$/', $event->data['id'])) {
return '';
return;
}
return $event->data['out'] . "\n" . $View->element('admin/content_fields');
}
Expand Down

0 comments on commit 36c1f43

Please sign in to comment.