From a02b4c7bb4e0fa090672e7454c1bcfd53c230e02 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 30 Sep 2009 11:26:01 -0700 Subject: [PATCH] JSON fields need autoGenerate=>0 and noFormPost=>1, fixes bug #11075 --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Sku/Product.pm | 18 ++++++++++++------ lib/WebGUI/Asset/Story.pm | 1 + 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index dfacb7767..2f7e6c152 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -25,6 +25,7 @@ - fixed #11066: wrong definitions - fixed #11070: i18n Asset_Navigation::assetsToInclude - fixed #11068: ITransact_recurringStatus + - fixed #11075: product destroys variants 7.8.0 - upgraded YUI to 2.8.0r4 diff --git a/lib/WebGUI/Asset/Sku/Product.pm b/lib/WebGUI/Asset/Sku/Product.pm index ae1de8152..097d7d1f0 100644 --- a/lib/WebGUI/Asset/Sku/Product.pm +++ b/lib/WebGUI/Asset/Sku/Product.pm @@ -153,37 +153,43 @@ sub definition { ##Collateral data is stored as JSON in here autoGenerate => 0, defaultValue => '[]', - fieldType=>"textarea", + fieldType => "textarea", + noFormPost => 1, }, accessoryJSON => { ##Collateral data is stored as JSON in here autoGenerate => 0, defaultValue => '[]', - fieldType=>"textarea", + fieldType => "textarea", + noFormPost => 1, }, relatedJSON => { ##Collateral data is stored as JSON in here autoGenerate => 0, defaultValue => '[]', - fieldType=>"textarea", + fieldType => "textarea", + noFormPost => 1, }, specificationJSON => { ##Collateral data is stored as JSON in here autoGenerate => 0, defaultValue => '[]', - fieldType=>"textarea", + fieldType => "textarea", + noFormPost => 1, }, featureJSON => { ##Collateral data is stored as JSON in here autoGenerate => 0, defaultValue => '[]', - fieldType=>"textarea", + fieldType => "textarea", + noFormPost => 1, }, benefitJSON => { ##Collateral data is stored as JSON in here autoGenerate => 0, defaultValue => '[]', - fieldType=>"textarea", + fieldType => "textarea", + noFormPost => 1, }, ); push(@{$definition}, { diff --git a/lib/WebGUI/Asset/Story.pm b/lib/WebGUI/Asset/Story.pm index f76e12656..146f5ae2d 100644 --- a/lib/WebGUI/Asset/Story.pm +++ b/lib/WebGUI/Asset/Story.pm @@ -166,6 +166,7 @@ sub definition { fieldType => 'textarea', defaultValue => '[]', noFormPost => 1, + autoGenerate => 0, }, ); push(@{$definition}, {