Note that this requires the list of property descriptors to always be set.
Signed-off-by: Francois Gouget fgouget@codeweavers.com --- Part of this patch escaped it and ended up in the FormPage reorganisation that caused trouble last week. --- testbot/lib/ObjectModel/CGI/FormPage.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/testbot/lib/ObjectModel/CGI/FormPage.pm b/testbot/lib/ObjectModel/CGI/FormPage.pm index 9e34a736d..2565c077b 100644 --- a/testbot/lib/ObjectModel/CGI/FormPage.pm +++ b/testbot/lib/ObjectModel/CGI/FormPage.pm @@ -117,8 +117,7 @@ sub GetPropertyDescriptorByName($$) { my ($self, $Name) = @_;
- my $PropertyDescriptors = $self->GetPropertyDescriptors(); - foreach my $PropertyDescriptor (@{$PropertyDescriptors}) + foreach my $PropertyDescriptor (@{$self->GetPropertyDescriptors()}) { if ($PropertyDescriptor->GetName() eq $Name) {