From: Vincent Vanwaelscappel Date: Thu, 15 Jun 2023 09:29:03 +0000 (+0200) Subject: wip #5996 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=eeb8959f7abaddfa8bcb9c847c1d374db1f325c5;p=fluidbook-toolbox.git wip #5996 --- diff --git a/app/Models/Base/ToolboxSettingsModel.php b/app/Models/Base/ToolboxSettingsModel.php index d0b52b4dc..83470753a 100644 --- a/app/Models/Base/ToolboxSettingsModel.php +++ b/app/Models/Base/ToolboxSettingsModel.php @@ -38,7 +38,6 @@ class ToolboxSettingsModel extends ToolboxModel public function addSettingField($name, $type = 'Text', $label = '', $attributes = []) { $attributes = self::normalizeAttributes($name, $type, $label, $attributes); - $res = $this->addField($name, $type, $label, array_merge(self::$defaultSettingsAttributes, $attributes)); - return $res; + return $this->addField($name, $type, $label, array_merge(self::$defaultSettingsAttributes, $attributes)); } }