Skip to content

Commit

Permalink
プラグインのエディタを正常に読み込めない問題を改善
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Mar 15, 2024
1 parent 8a2a4be commit a8dc578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/baser-core/src/View/Helper/BcFormHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,8 @@ public function editor($fieldName, $options = [])

$className = $options['editor'];
[, $editor] = pluginSplit($options['editor']);
$this->_View->loadHelper($editor, ['className' => $className]);
if (!empty($this->getView()->{$editor})) {
$this->getView()->loadHelper($editor, ['className' => $className]);
if (isset($this->getView()->helpers()->{$editor})) {
return $this->getView()->{$editor}->editor($fieldName, $options);
} elseif ($editor === 'none') {
$_options = [];
Expand Down

0 comments on commit a8dc578

Please sign in to comment.