From bd0ef7abdda039dc366c34769641db3bce0ed6e7 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 29 Mar 2021 14:53:28 +1300 Subject: [PATCH] Make title required --- CRM/Batch/DAO/Batch.php | 3 ++- CRM/Core/I18n/SchemaStructure.php | 3 ++- xml/schema/Batch/Batch.xml | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CRM/Batch/DAO/Batch.php b/CRM/Batch/DAO/Batch.php index 8b85c8ce3d77..ac533557bc2f 100644 --- a/CRM/Batch/DAO/Batch.php +++ b/CRM/Batch/DAO/Batch.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Batch/Batch.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5da4d1a83e75b4ab957e1dfb8974d923) + * (GenCodeChecksum:191a8cf6cecf259a12fa3b47c3383524) */ /** @@ -229,6 +229,7 @@ public static function &fields() { 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Batch Title'), 'description' => ts('Friendly Name.'), + 'required' => 1, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'where' => 'civicrm_batch.title', diff --git a/CRM/Core/I18n/SchemaStructure.php b/CRM/Core/I18n/SchemaStructure.php index 3752833f5d55..a130d321a38c 100644 --- a/CRM/Core/I18n/SchemaStructure.php +++ b/CRM/Core/I18n/SchemaStructure.php @@ -46,7 +46,7 @@ public static function &columns() { 'description' => "text COMMENT 'localized Optional verbose description of the type.'", ], 'civicrm_batch' => [ - 'title' => "varchar(255) COMMENT 'Friendly Name.'", + 'title' => "varchar(255) NOT NULL COMMENT 'Friendly Name.'", 'description' => "text COMMENT 'Description of this batch set.'", ], 'civicrm_premiums' => [ @@ -299,6 +299,7 @@ public static function &widgets() { 'civicrm_batch' => [ 'title' => [ 'type' => "Text", + 'required' => "1", ], 'description' => [ 'type' => "TextArea", diff --git a/xml/schema/Batch/Batch.xml b/xml/schema/Batch/Batch.xml index d7b4541bbdb0..2d30bae4a48c 100644 --- a/xml/schema/Batch/Batch.xml +++ b/xml/schema/Batch/Batch.xml @@ -45,6 +45,7 @@ 255 true Friendly Name. + 1 4.2 Text