add a getProperty to WebGUI::Definition::Role::Object as Asset.pm's www_add wants this for picking out noFormPost data from the property definition in assets. fixes a fatal error when trying to add the Request Tracker and perhaps other assets.

This commit is contained in:
Scott Walters 2013-02-17 15:02:16 -05:00
parent e27f200856
commit 0edd58f848

View file

@ -179,6 +179,20 @@ sub getFormProperties {
#-------------------------------------------------------------------
=head2 getProperty ( $property_name )
Returns the structure used to create a property.
=cut
sub getProperty {
my $self = shift;
my $property_name = shift;
return $self->meta->find_attribute_by_name( $property_name );
}
#-------------------------------------------------------------------
=head2 getProperties ( )
Returns a list of the names of all properties of the object, as set by the Definition.
@ -190,5 +204,6 @@ sub getProperties {
return $self->meta->get_all_property_list;
}
1;