Fix Hidden, Radio and Checkbox, which wouldn't allow
a value of zero to be set in them. It was translated to the empty string.
This commit is contained in:
parent
fd7a1d28a1
commit
c930c73d67
6 changed files with 70 additions and 7 deletions
|
|
@ -90,8 +90,7 @@ my $properties4 = {
|
|||
className => 'WebGUI::Asset::Wobject::Product',
|
||||
url => 'four',
|
||||
price => 7.77,
|
||||
title => 'no product number',
|
||||
description => 'fourth product',
|
||||
description => 'no title',
|
||||
};
|
||||
|
||||
my $product4 = $root->addChild($properties4);
|
||||
|
|
@ -166,6 +165,24 @@ $productf->setCollateral('Product_feature', 'Product_featureId', {
|
|||
feature => '25% less code',
|
||||
});
|
||||
|
||||
my $propertiesb = {
|
||||
className => 'WebGUI::Asset::Wobject::Product',
|
||||
url => 'benefit_Product',
|
||||
price => 4.44,
|
||||
title => 'benefit Product',
|
||||
description => 'benefit Product',
|
||||
};
|
||||
|
||||
my $productb = $root->addChild($propertiesb);
|
||||
|
||||
$productb->setCollateral('Product_benefit', 'Product_benefitId', {
|
||||
benefit => 'holds mixed nuts',
|
||||
});
|
||||
|
||||
$productb->setCollateral('Product_benefit', 'Product_benefitId', {
|
||||
benefit => 'automatic sodium monitoring',
|
||||
});
|
||||
|
||||
$tag->commit;
|
||||
|
||||
diag "Done.";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue