From 87abb7933130b3497b23c9145aa41c950713f6db Mon Sep 17 00:00:00 2001 From: Yung Han Khoe Date: Wed, 8 Apr 2009 19:35:14 +0000 Subject: [PATCH] fixed #10110: Matrix 2.0 - "Data Error" on Pending Product Listing Updates --- docs/changelog/7.x.x.txt | 2 ++ .../matrix-default-detailed-listing.wgpkg | Bin 0 -> 2024 bytes lib/WebGUI/Asset/MatrixListing.pm | 4 ++++ www/extras/wobject/Matrix/matrixListing.js | 3 +++ 4 files changed, 9 insertions(+) create mode 100644 docs/upgrades/packages-7.7.3/matrix-default-detailed-listing.wgpkg diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 68d80b28d..9c2e7bcab 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -2,6 +2,8 @@ - fixed #10094: double explanation in thread help - rfe #9612: Carousel Wobject (was Widget Wobject) (SDH Consulting Group) - Survey summaries now added. In the Survey edit, select quiz mode, and a summary will be shown to the user at the end of the survey. + - fixed #10110: Matrix 2.0 - "Data Error" on Pending Product Listing Updates + 7.7.2 - fixed #10056: YUI javascripts included while adminOff (BNC) - fixed a bug that required you to hit "update cart" before the checkout diff --git a/docs/upgrades/packages-7.7.3/matrix-default-detailed-listing.wgpkg b/docs/upgrades/packages-7.7.3/matrix-default-detailed-listing.wgpkg new file mode 100644 index 0000000000000000000000000000000000000000..8b1ec16ddb71a0e5c39c24e753099ed448627f43 GIT binary patch literal 2024 zcmVDAgfj)Q04PP*x&PkX1xZj6l{l*1FAZl*TEM{A1DV8DM{b$Dg93|N$ReD zAJD&@-u|y9RgWYIkUTy-+~ogm@A$aC;{V>^(cumQYd-z+RQ}(8deI+)!@s|SBy1U* zYCaY%Hel~R{6I^YPBWpc6b4rb3?U;exE1k_3tVmWS_F(62{-ojr!3X5`;u@}o+Q;a zWSJ%Utt=lU(o96`ag~@~OBJVcBHHmAW}(u|$aQk*TnT+;gg%Q`1reXD=5GX#FZq}d zTVW#AJ)3B8_u{7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Qmv745n%hn>1%0DRprfEBkrk5Y8@|A2Z*h<(2$4R(ZllsE;te#hL)?B~>i zFcGy{gjur_l!E*cQ~c{>!5L}pMwUgxQ=5@OcP#8X`J1D8*zX;Bd7wVSD3q9OF!NyW z=JMiv-RRPsL%&-Zd}(4UO<}!N?P!!+IEwa8PWmS&NBx7E1Uno3h3e&_{qqe0Wo}h(_>ZT2xd%Zn`iu5A0Z%fiO!7LvabEUs_yZzhf`r=>L zucoIR6~*^wC;h*9BGSBD7#QxXs!ytw7OPLdAzomT+GdVlg9 z@t9S%5br#e>2J~5RV1(TneF|vt@zRPyoIy*-@p6)F-HI2XneE4Hw*lqTi`#K+2ue0 GAOHYUPvJ`d literal 0 HcmV?d00001 diff --git a/lib/WebGUI/Asset/MatrixListing.pm b/lib/WebGUI/Asset/MatrixListing.pm index 9a14d0111..0bbd6acb2 100644 --- a/lib/WebGUI/Asset/MatrixListing.pm +++ b/lib/WebGUI/Asset/MatrixListing.pm @@ -640,6 +640,10 @@ sub view { $var->{manufacturerUrl_click} = $self->getUrl("func=click;manufacturer=1"); $var->{productUrl_click} = $self->getUrl("func=click"); + if($self->get('status') eq 'pending'){ + $var->{revision} = $self->get('revisionDate'); + } + $self->session->style->setScript($self->session->url->extras('yui/build/yahoo/yahoo-min.js'), {type => 'text/javascript'}); $self->session->style->setScript($self->session->url->extras('yui/build/dom/dom-min.js'), diff --git a/www/extras/wobject/Matrix/matrixListing.js b/www/extras/wobject/Matrix/matrixListing.js index 6651cafd7..8d87a4b58 100644 --- a/www/extras/wobject/Matrix/matrixListing.js +++ b/www/extras/wobject/Matrix/matrixListing.js @@ -44,6 +44,9 @@ YAHOO.util.Event.addListener(window, "load", function() { }; var uri = "func=getAttributes"; + if(typeof(revision) != 'undefined'){ + uri = uri + ';revision=' + revision; + } var initAttributeHoverHelp = function() { initHoverHelp('attributes');