summaryrefslogtreecommitdiff
path: root/rt/lib/RT/CustomField.pm
diff options
context:
space:
mode:
authormark <mark>2010-09-01 23:39:23 +0000
committermark <mark>2010-09-01 23:39:23 +0000
commit8c5a780343e027058a51692d8b9b8140c88ce6c7 (patch)
treece5cd525de2adebbc463fb63795716aa61812d35 /rt/lib/RT/CustomField.pm
parent60a603adb62f03d90391b16ce5b89242adf9c1d5 (diff)
RT mandatory custom fields, RT#9260
Diffstat (limited to 'rt/lib/RT/CustomField.pm')
-rw-r--r--rt/lib/RT/CustomField.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/rt/lib/RT/CustomField.pm b/rt/lib/RT/CustomField.pm
index 995728f..dc41080 100644
--- a/rt/lib/RT/CustomField.pm
+++ b/rt/lib/RT/CustomField.pm
@@ -122,6 +122,7 @@ sub Create {
Disabled => '0',
LinkToValue => '',
IncludeContentForValue => '',
+ Required => '0',
@_);
$self->SUPER::Create(
@@ -381,6 +382,8 @@ sub _CoreAccessible {
{read => 1, auto => 1, sql_type => 11, length => 0, is_blob => 0, is_numeric => 0, type => 'datetime', default => ''},
Disabled =>
{read => 1, write => 1, sql_type => 5, length => 6, is_blob => 0, is_numeric => 1, type => 'smallint(6)', default => '0'},
+ Required =>
+ {read => 1, write => 1, sql_type => 5, length => 6, is_blob => 0, is_numeric => 1, type => 'smallint(6)', default => '0'},
}
};