Skip to content

Commit

Permalink
Make CaseType usable in Afform
Browse files Browse the repository at this point in the history
  • Loading branch information
aydun committed May 31, 2022
1 parent d41a8c1 commit 39d3b32
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
20 changes: 19 additions & 1 deletion CRM/Case/DAO/CaseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Case/CaseType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:7b3029a4b42f22a060fadb39b7b2c678)
* (GenCodeChecksum:92eb680369ce37591734a961f22ce831)
*/

/**
Expand Down Expand Up @@ -159,6 +159,9 @@ public static function &fields() {
'entity' => 'CaseType',
'bao' => 'CRM_Case_BAO_CaseType',
'localizable' => 0,
'html' => [
'type' => 'Text',
],
'add' => '4.5',
],
'title' => [
Expand All @@ -174,6 +177,9 @@ public static function &fields() {
'entity' => 'CaseType',
'bao' => 'CRM_Case_BAO_CaseType',
'localizable' => 1,
'html' => [
'type' => 'Text',
],
'add' => '4.5',
],
'description' => [
Expand All @@ -188,6 +194,9 @@ public static function &fields() {
'entity' => 'CaseType',
'bao' => 'CRM_Case_BAO_CaseType',
'localizable' => 1,
'html' => [
'type' => 'Text',
],
'add' => '4.5',
],
'is_active' => [
Expand All @@ -202,6 +211,9 @@ public static function &fields() {
'entity' => 'CaseType',
'bao' => 'CRM_Case_BAO_CaseType',
'localizable' => 0,
'html' => [
'type' => 'CheckBox',
],
'add' => '4.5',
],
'is_reserved' => [
Expand All @@ -216,6 +228,9 @@ public static function &fields() {
'entity' => 'CaseType',
'bao' => 'CRM_Case_BAO_CaseType',
'localizable' => 0,
'html' => [
'type' => 'CheckBox',
],
'add' => '4.5',
],
'weight' => [
Expand All @@ -230,6 +245,9 @@ public static function &fields() {
'entity' => 'CaseType',
'bao' => 'CRM_Case_BAO_CaseType',
'localizable' => 0,
'html' => [
'type' => 'Number',
],
'add' => '4.5',
],
'definition' => [
Expand Down
2 changes: 1 addition & 1 deletion Civi/Api4/CaseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* This contains configuration settings for each type of CiviCase.
*
* @see \Civi\Api4\Case
* @searchable none
* @searchable secondary
* @since 5.37
* @package Civi\Api4
*/
Expand Down
18 changes: 18 additions & 0 deletions xml/schema/Case/CaseType.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<length>64</length>
<required>true</required>
<comment>Machine name for Case Type</comment>
<html>
<type>Text</type>
</html>
<add>4.5</add>
</field>
<index>
Expand All @@ -45,6 +48,9 @@
<required>true</required>
<localizable>true</localizable>
<comment>Natural language name for Case Type</comment>
<html>
<type>Text</type>
</html>
<add>4.5</add>
</field>
<field>
Expand All @@ -54,13 +60,19 @@
<length>255</length>
<localizable>true</localizable>
<comment>Description of the Case Type</comment>
<html>
<type>Text</type>
</html>
<add>4.5</add>
</field>
<field>
<name>is_active</name>
<title>Case Type Is Active</title>
<type>boolean</type>
<comment>Is this case type enabled?</comment>
<html>
<type>CheckBox</type>
</html>
<default>1</default>
<required>true</required>
<add>4.5</add>
Expand All @@ -72,6 +84,9 @@
<default>0</default>
<required>true</required>
<comment>Is this case type a predefined system type?</comment>
<html>
<type>CheckBox</type>
</html>
<add>4.5</add>
</field>
<field>
Expand All @@ -81,6 +96,9 @@
<required>true</required>
<default>1</default>
<comment>Ordering of the case types</comment>
<html>
<type>Number</type>
</html>
<add>4.5</add>
</field>
<field>
Expand Down

0 comments on commit 39d3b32

Please sign in to comment.