Commit d0d1530b authored by Ruslan Zakirov's avatar Ruslan Zakirov
Browse files

set context in OCFV::CustomFieldObj

move this method into Overlay.pm bythe way
parent a6639e38
......@@ -163,20 +163,6 @@ Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
=cut
=head2 CustomFieldObj
Returns the CustomField Object which has the id returned by CustomField
=cut
sub CustomFieldObj {
my $self = shift;
my $CustomField = RT::CustomField->new($self->CurrentUser);
$CustomField->Load($self->__Value('CustomField'));
return($CustomField);
}
=head2 ObjectType
Returns the current value of ObjectType.
......
......@@ -150,6 +150,20 @@ sub LoadByObjectContentAndCustomField {
);
}
=head2 CustomFieldObj
Returns the CustomField Object which has the id returned by CustomField
=cut
sub CustomFieldObj {
my $self = shift;
my $CustomField = RT::CustomField->new( $self->CurrentUser );
$CustomField->SetContextObject( $self->Object );
$CustomField->Load( $self->__Value('CustomField') );
return $CustomField;
}
=head2 Content
......
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