CiviCase - Tag `created_date` as readonly
authorColeman Watts <coleman@civicrm.org>
Sun, 23 Jan 2022 17:24:13 +0000 (12:24 -0500)
committerColeman Watts <coleman@civicrm.org>
Sun, 23 Jan 2022 17:24:13 +0000 (12:24 -0500)
For better or for worse, the Case BAO does not allow this field to be updated,
so this updates getfields to reflect that fact.

CRM/Case/DAO/Case.php
xml/schema/Case/Case.xml

index f787bdd65d75a370d8ef4c9cf202d139ffeb3cd6..7b78fd0b6b1598575cf535fa9021a8e068021c10 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Case/Case.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1ae35a7a60938212678c1585defc3506)
+ * (GenCodeChecksum:4f0e6fd0e12af2ec370f45171c017159)
  */
 
 /**
@@ -335,6 +335,7 @@ class CRM_Case_DAO_Case extends CRM_Core_DAO {
           'html' => [
             'label' => ts("Created Date"),
           ],
+          'readonly' => TRUE,
           'add' => '4.7',
         ],
         'case_modified_date' => [
index a95d44923aff6eefc6d2a08d3803d8cde9a4fcb9..acc66e4ede1f9eaf94268b1002c9a19ed17688d2 100644 (file)
     <html>
       <label>Created Date</label>
     </html>
+    <readonly>true</readonly>
     <add>4.7</add>
   </field>
   <field>