Commit dec257a4 authored by Jacky Chang's avatar Jacky Chang
Browse files

RT-Ticket: 9197

RT-Status: Resolved
RT-Update: Correspond
include-cf and link-cf links are now saved when creating customfields.

git-svn-id: svn+ssh://svn.bestpractical.com/svn/bps-public/rt/3.8/trunk@13591 e417ac7c-1bcc-0310-8ffa-8f5827389a85
parent 0515790e
......@@ -120,8 +120,10 @@ sub Create {
SortOrder => '0',
LookupType => '',
Disabled => '0',
LinkToValue => '',
IncludeContentForValue => '',
@_);
@_);
$self->SUPER::Create(
Name => $args{'Name'},
Type => $args{'Type'},
......@@ -132,6 +134,8 @@ sub Create {
SortOrder => $args{'SortOrder'},
LookupType => $args{'LookupType'},
Disabled => $args{'Disabled'},
LinkToValue => $args{'LinkToValue'},
IncludeContentForValue => $args{'IncludeContentForValue'}
);
}
......
......@@ -164,6 +164,8 @@ sub Create {
Disabled => 0,
LookupType => '',
Repeated => 0,
LinkValueTo => '',
IncludeContentForValue => '',
@_,
);
......@@ -221,6 +223,14 @@ sub Create {
Repeated => $args{'Repeated'},
);
if ( exists $args{'LinkValueTo'}) {
$self->SetLinkValueTo($args{'LinkValueTo'});
}
if ( exists $args{'IncludeContentForValue'}) {
$self->SetIncludeContentForValue($args{'IncludeContentForValue'});
}
if ( exists $args{'ValuesClass'} ) {
$self->SetValuesClass( $args{'ValuesClass'} );
}
......
......@@ -145,6 +145,8 @@ else {
LookupType => $LookupType,
Description => $Description,
Pattern => $Pattern,
LinkValueTo => $LinkValueTo,
IncludeContentForValue => $IncludeContentForValue,
);
$m->comp( "/Elements/Error", Why => loc( "Could not create CustomField", $msg ) ) unless $val;
push @results, $msg;
......@@ -227,4 +229,6 @@ $Name => undef
$SetEnabled => undef
$Enabled => 0
$ValuesClass => 'RT::CustomFieldValues'
$LinkValueTo => undef
$IncludeContentForValue => undef
</%ARGS>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment