[tools] testbot/cgi: !1 is really an empty string in FormPage::SaveProperties().
Francois Gouget
fgouget at codeweavers.com
Mon Mar 7 05:46:21 CST 2022
So the point of that SaveProperty() call is that if an editable property
value was not received as a form parameter it is considered to be an
empty string.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/lib/ObjectModel/CGI/FormPage.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/lib/ObjectModel/CGI/FormPage.pm b/testbot/lib/ObjectModel/CGI/FormPage.pm
index 1910bf743b..067d11b5bf 100644
--- a/testbot/lib/ObjectModel/CGI/FormPage.pm
+++ b/testbot/lib/ObjectModel/CGI/FormPage.pm
@@ -375,7 +375,7 @@ sub SaveProperties($)
$self->DisplayProperty($PropertyDescriptor) eq "rw" &&
! defined($self->GetParam($PropertyDescriptor->GetName())))
{
- if (! $self->SaveProperty($PropertyDescriptor, !1))
+ if (! $self->SaveProperty($PropertyDescriptor, ""))
{
return !1;
}
--
2.30.2
More information about the wine-devel
mailing list