{
my ($id, $msg) = $u1->AddCustomFieldValue(
- Field => $cfname,
- Value => $cfvalue1,
- RecordTransaction => 0 );
+ Field => $cfname,
+ Value => $cfvalue1,
+ RecordTransaction => 0 );
ok( $id, "Adding CF value '$cfvalue1' - " . $msg );
}
{
my ($id, $msg) = $u1->DeleteCustomFieldValue(
- Field => $cfname,
- Value => $cfvalue1,
- RecordTransaction => 0 );
+ Field => $cfname,
+ Value => $cfvalue1,
+ RecordTransaction => 0 );
ok( $id, "Deleting CF value - " . $msg );
}
my $cfvalue2 = 'Bar';
{
my ($id, $msg) = $u1->AddCustomFieldValue(
- Field => $cfname,
- Value => $cfvalue2,
- RecordTransaction => 0 );
+ Field => $cfname,
+ Value => $cfvalue2,
+ RecordTransaction => 0 );
ok( $id, "Adding second CF value '$cfvalue2' - " . $msg );
}
isa_ok( $users, 'RT::Users' );
$users->LimitCustomField(
- CUSTOMFIELD => $cf_id,
- OPERATOR => "=",
- VALUE => $cf_value );
+ CUSTOMFIELD => $cf_id,
+ OPERATOR => "=",
+ VALUE => $cf_value );
while ( my $filtered_user = $users->Next() ){
my $cf_values = $filtered_user->CustomFieldValues($cf->id);