From d3188f36ffa6fcd54669569c276fbac43d4b8806 Mon Sep 17 00:00:00 2001
From: Dave Long <dave@longwaveconsulting.com>
Date: Tue, 23 Jul 2024 14:02:29 +0100
Subject: [PATCH] Issue #3458319 by TravisCarden: 'Display "@display" needs a
 selected search fields' message is confusing

(cherry picked from commit 269e502c5517948ddfbbcebc145104b7ed4a01e6)
---
 core/modules/views/src/Plugin/views/display/EntityReference.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/modules/views/src/Plugin/views/display/EntityReference.php b/core/modules/views/src/Plugin/views/display/EntityReference.php
index 7523b445164d..577321ed0bfd 100644
--- a/core/modules/views/src/Plugin/views/display/EntityReference.php
+++ b/core/modules/views/src/Plugin/views/display/EntityReference.php
@@ -221,7 +221,7 @@ public function validate() {
     // Verify that search fields are set up.
     $style = $this->getOption('style');
     if (!isset($style['options']['search_fields'])) {
-      $errors[] = $this->t('Display "@display" needs a selected search fields to work properly. See the settings for the Entity Reference list format.', ['@display' => $this->display['display_title']]);
+      $errors[] = $this->t('Display "@display" needs a selected "Search fields" value to work properly. See the settings for the "Entity Reference list" format.', ['@display' => $this->display['display_title']]);
     }
     else {
       // Verify that the search fields used actually exist.
-- 
GitLab