@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | /** |
48 | 48 | * @inheritdoc |
49 | 49 | */ |
50 | - public static function dbType(): array|string|null |
|
50 | + public static function dbType(): array | string | null |
|
51 | 51 | { |
52 | 52 | return Schema::TYPE_TEXT; |
53 | 53 | } |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | 'prefix' => Craft::$app->getView()->namespaceInputId(''), |
172 | 172 | ]; |
173 | 173 | $jsonVars = Json::encode($jsonVars); |
174 | - Craft::$app->getView()->registerJs(sprintf('$(\'#%s-field\').RecipeRecipe(', $nameSpacedId) . $jsonVars . ");"); |
|
174 | + Craft::$app->getView()->registerJs(sprintf('$(\'#%s-field\').RecipeRecipe(', $nameSpacedId).$jsonVars.");"); |
|
175 | 175 | |
176 | 176 | // Set asset elements |
177 | 177 | $elements = []; |