Php8.2 declare deleteMessage on entityFormTrait
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 13 Mar 2023 00:10:12 +0000 (13:10 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 13 Mar 2023 00:16:00 +0000 (13:16 +1300)
Php8.2 declare deleteMessage on the EntityFormTrait

CRM/Admin/Form/RelationshipType.php
CRM/Core/Form/EntityFormTrait.php
CRM/Financial/Form/FinancialType.php
CRM/Member/Form/MembershipType.php
CRM/Price/Form/Set.php
CRM/UF/Form/Group.php
templates/CRM/Member/Form/Membership.tpl

index c109a2835cd528bfadcff5be6fe61f5b47ca213b..b6c02254fe1f1133bbabc6643cfd73661e47a0ca 100644 (file)
@@ -69,13 +69,6 @@ class CRM_Admin_Form_RelationshipType extends CRM_Admin_Form {
     self::setEntityFieldsMetadata();
   }
 
-  /**
-   * Deletion message to be assigned to the form.
-   *
-   * @var string
-   */
-  protected $deleteMessage;
-
   /**
    * Explicitly declare the entity api name.
    */
index ccf5522788446357b8b28da2f4759aef602f5180..d19fc483600909fbae9596a2cdc4f23291f2d1ce 100644 (file)
@@ -30,6 +30,13 @@ trait CRM_Core_Form_EntityFormTrait {
    */
   protected $_entitySubTypeId = NULL;
 
+  /**
+   * Deletion message to be assigned to the form.
+   *
+   * @var string
+   */
+  protected $deleteMessage;
+
   /**
    * Get entity fields for the entity to be added to the form.
    *
index a9cd27ee26f4a8bc1fe97a4bd1f8dc1aef8a100d..3d9f046966ecfd39c8869eb31163ecf97f30526e 100644 (file)
@@ -31,13 +31,6 @@ class CRM_Financial_Form_FinancialType extends CRM_Core_Form {
    */
   protected $entityFields = [];
 
-  /**
-   * Deletion message to be assigned to the form.
-   *
-   * @var string
-   */
-  protected $deleteMessage;
-
   /**
    * Set variables up before form is built.
    *
index 686e2f36f9cf6064a24a50663d4703ccf7f64bf3..17586c64783b4dc454097d030de94153565b620c 100644 (file)
@@ -121,13 +121,6 @@ class CRM_Member_Form_MembershipType extends CRM_Member_Form_MembershipConfig {
     }
   }
 
-  /**
-   * Deletion message to be assigned to the form.
-   *
-   * @var string
-   */
-  protected $deleteMessage;
-
   /**
    * Explicitly declare the entity api name.
    */
index 88a24f76a48ce8820e24ac5aab92645967923630..a9c8af801745dcd5046a283b2df0603c41dadf48 100644 (file)
@@ -76,13 +76,6 @@ class CRM_Price_Form_Set extends CRM_Core_Form {
     ];
   }
 
-  /**
-   * Deletion message to be assigned to the form.
-   *
-   * @var string
-   */
-  protected $deleteMessage;
-
   /**
    * Set the delete message.
    *
index 87814ab22e7c8bb3fe24eb48c487ccce852379ff..c3cdcc4b78655df0c8d8ed852519efd74f1b63e7 100644 (file)
@@ -40,13 +40,6 @@ class CRM_UF_Form_Group extends CRM_Core_Form {
    */
   protected $entityFields = [];
 
-  /**
-   * Deletion message to be assigned to the form.
-   *
-   * @var string
-   */
-  protected $deleteMessage;
-
   /**
    * @var bool
    */
index a7564b1520c6804fc52223720dc8603ae4012fd0..7f8203b0a01a66061b0037ebb880b2d8de8bbb78 100644 (file)
@@ -66,7 +66,7 @@
     {if $action eq 8}
     <div class="messages status no-popup">
       {icon icon="fa-info-circle"}{/icon}
-      {$deleteMessage}
+      {$deleteMessage|smarty:nodefaults}
     </div>
     {else}
       <table class="form-layout-compressed">