dev/core#1381 fix fatal on case search (unreleased regression
authoreileen <emcnaughton@wikimedia.org>
Mon, 11 Nov 2019 02:03:50 +0000 (15:03 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 11 Nov 2019 02:03:50 +0000 (15:03 +1300)
CRM/Core/Form/Search.php

index b03bbc46b6eecb70fad0077082590c7df76b96be..6dc3d7a7e99b61b0bfa5bf8558219034f4d43572 100644 (file)
@@ -457,6 +457,27 @@ class CRM_Core_Form_Search extends CRM_Core_Form {
 
   }
 
+  /**
+   * Get the label for the group field.
+   *
+   * @return string
+   */
+  protected function getGroupLabel() {
+    return ts('Group(s)');
+  }
+
+  /**
+   * Get the label for the tag field.
+   *
+   * We do this in a function so the 'ts' wraps the whole string to allow
+   * better translation.
+   *
+   * @return string
+   */
+  protected function getTagLabel() {
+    return ts('Tag(s)');
+  }
+
   /**
    * we allow the controller to set force/reset externally, useful when we are being
    * driven by the wizard framework