Skip to content

Commit

Permalink
独自プラグインの初期データが復元されない #4023
Browse files Browse the repository at this point in the history
  • Loading branch information
binbin4649 authored Nov 18, 2024
1 parent f2712cb commit a7611e8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/baser-core/src/Service/BcDatabaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,8 @@ public function dropTable(string $tableName)
*/
public function loadDefaultDataPattern(string $theme, string $pattern, string $dbConfigKeyName = 'default'): bool
{
$plugins = array_merge(
['BaserCore'],
Configure::read('BcApp.corePlugins'),
BcUtil::getCurrentThemesPlugins()
);
$folderUtility = new BcFolder(Plugin::path($theme) . 'config' . DS . 'data' . DS . $pattern);
$plugins = $folderUtility->getFolders();

$db = $this->getDataSource($dbConfigKeyName);
$db->begin();
Expand Down

0 comments on commit a7611e8

Please sign in to comment.