Skip to content
Snippets Groups Projects
Commit 5ada69c4 authored by Web Admin's avatar Web Admin
Browse files

added get_scalar_attribute call to do just that

parent 43930206
No related branches found
No related tags found
No related merge requests found
......@@ -221,6 +221,12 @@ sub get_all_Attributes {
}
}
sub get_scalar_attribute {
my $self = shift;
my $code = shift;
my @results = grep { uc( $_->code() ) eq uc( $code )} @{$self->{'attributes'}};
return @results ? $results[0]->value() : '';
}
=head2 display_id
......
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