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:
parent
e27f200856
commit
0edd58f848
1 changed files with 15 additions and 0 deletions
|
|
@ -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 ( )
|
=head2 getProperties ( )
|
||||||
|
|
||||||
Returns a list of the names of all properties of the object, as set by the Definition.
|
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;
|
return $self->meta->get_all_property_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue