Skip to content

Commit

Permalink
Make title required
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Mar 29, 2021
1 parent 37607fe commit bd0ef7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CRM/Batch/DAO/Batch.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Batch/Batch.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:5da4d1a83e75b4ab957e1dfb8974d923)
* (GenCodeChecksum:191a8cf6cecf259a12fa3b47c3383524)
*/

/**
Expand Down Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion CRM/Core/I18n/SchemaStructure.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down Expand Up @@ -299,6 +299,7 @@ public static function &widgets() {
'civicrm_batch' => [
'title' => [
'type' => "Text",
'required' => "1",
],
'description' => [
'type' => "TextArea",
Expand Down
1 change: 1 addition & 0 deletions xml/schema/Batch/Batch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<length>255</length>
<localizable>true</localizable>
<comment>Friendly Name.</comment>
<required>1</required>
<add>4.2</add>
<html>
<type>Text</type>
Expand Down

0 comments on commit bd0ef7a

Please sign in to comment.