diff --git a/models/SearchAction.php b/models/SearchAction.php index e18d36f..60b1155 100644 --- a/models/SearchAction.php +++ b/models/SearchAction.php @@ -21,7 +21,9 @@ public function fields() { return array_merge( parent::fields(), [ - 'query-input' => 'required' + 'query-input' => function () { + return 'required'; + } ] ); } diff --git a/views/schema-org/model-template.php b/views/schema-org/model-template.php index cd13499..615ae43 100644 --- a/views/schema-org/model-template.php +++ b/views/schema-org/model-template.php @@ -42,7 +42,9 @@ public function fields() { return array_merge( parent::fields(), [ - 'query-input' => 'required' + 'query-input' => function () { + return 'required'; + } ] ); }