Skip to content

Commit

Permalink
独自プラグインの初期データが復元されない #4023 (#4029)
Browse files Browse the repository at this point in the history
  • Loading branch information
binbin4649 authored Nov 20, 2024
1 parent 9f7f746 commit e7d3e84
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 e7d3e84

Please sign in to comment.