[Rt-commit] r2894 -
rt/branches/CHALDEA-EXPERIMENTAL/html/Admin/CustomFields
autrijus at bestpractical.com
autrijus at bestpractical.com
Wed May 18 10:23:01 EDT 2005
Author: autrijus
Date: Wed May 18 10:23:00 2005
New Revision: 2894
Modified:
rt/branches/CHALDEA-EXPERIMENTAL/html/Admin/CustomFields/Modify.html
Log:
* creation of CF with pattern
Modified: rt/branches/CHALDEA-EXPERIMENTAL/html/Admin/CustomFields/Modify.html
==============================================================================
--- rt/branches/CHALDEA-EXPERIMENTAL/html/Admin/CustomFields/Modify.html (original)
+++ rt/branches/CHALDEA-EXPERIMENTAL/html/Admin/CustomFields/Modify.html Wed May 18 10:23:00 2005
@@ -119,7 +119,8 @@
my ( $val, $msg ) = $CustomFieldObj->Create(Name => $Name,
TypeComposite => $TypeComposite,
LookupType => $LookupType,
- Description => $Description,);
+ Description => $Description,
+ Pattern => $Pattern,);
$m->comp("/Elements/Error", Why => loc( "Could not create CustomField", $msg ) ) unless ($val);
push @results, $msg;
$title = loc( 'Created CustomField [_1]', $CustomFieldObj->Name() );
@@ -188,10 +189,10 @@
# Add any new values
if ($ARGS{$paramtag."new-Name"}) {
- my ($id, $msg) = $CustomFieldObj->AddValue ( Name => $ARGS{$paramtag."new-Name"},
- Description => $ARGS{$paramtag."new-Description"},
- SortOrder => $ARGS{$paramtag."new-SortOrder"},
- Category => $ARGS{$paramtag."new-Category"});
+ my ($id, $msg) = $CustomFieldObj->AddValue (
+ map { $_ => $ARGS{$paramtag."new-$_"} }
+ qw( Name Description SortOrder Category )
+ );
push (@results, $msg);
}
@@ -211,6 +212,7 @@
$MaxValues => undef
$SortOrder => undef
$Description => undef
+$Pattern => undef
$Name => undef
$SetEnabled => undef
$Enabled => undef
More information about the Rt-commit
mailing list