[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.7-73-gd0d1530
Ruslan Zakirov
ruz at bestpractical.com
Tue Jan 5 18:04:56 EST 2010
The branch, 3.8-trunk has been updated
via d0d1530b8229d3d01b40f82af1c95ec263dec3f2 (commit)
from a6639e38603c98d7b500a391f1c40894bb663071 (commit)
Summary of changes:
lib/RT/ObjectCustomFieldValue.pm | 14 --------------
lib/RT/ObjectCustomFieldValue_Overlay.pm | 14 ++++++++++++++
2 files changed, 14 insertions(+), 14 deletions(-)
- Log -----------------------------------------------------------------
commit d0d1530b8229d3d01b40f82af1c95ec263dec3f2
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Wed Jan 6 02:03:36 2010 +0300
set context in OCFV::CustomFieldObj
move this method into Overlay.pm bythe way
diff --git a/lib/RT/ObjectCustomFieldValue.pm b/lib/RT/ObjectCustomFieldValue.pm
index 543368f..b6ca245 100644
--- a/lib/RT/ObjectCustomFieldValue.pm
+++ b/lib/RT/ObjectCustomFieldValue.pm
@@ -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.
diff --git a/lib/RT/ObjectCustomFieldValue_Overlay.pm b/lib/RT/ObjectCustomFieldValue_Overlay.pm
index 37ad056..ce1a5a1 100644
--- a/lib/RT/ObjectCustomFieldValue_Overlay.pm
+++ b/lib/RT/ObjectCustomFieldValue_Overlay.pm
@@ -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
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list