From 751272423979ea1c841005e2c6dabfe9213b527c Mon Sep 17 00:00:00 2001 From: Yung Han Khoe Date: Sun, 19 Apr 2009 16:59:58 +0000 Subject: [PATCH] fixed: #10109: Matrix 2.0 - Updates to product listing by maintainer account require admin approval --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/MatrixListing.pm | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index d6133cdc3..1164d22e5 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -32,6 +32,7 @@ - added Survey Number type. Text number entry that uses slider restrictions as constraints (server and client side). You can also use the arrow keys to increment or decrement the number enter. If slider constraints are blank, no rules applied. - added: ThingyRecord allows you to sell records in a Thingy (like a classified ad) + - fixed: #10109: Matrix 2.0 - Updates to product listing by maintainer account require admin approval 7.7.3 - fixed #10094: double explanation in thread help diff --git a/lib/WebGUI/Asset/MatrixListing.pm b/lib/WebGUI/Asset/MatrixListing.pm index 892d3d6a9..1f49e603b 100644 --- a/lib/WebGUI/Asset/MatrixListing.pm +++ b/lib/WebGUI/Asset/MatrixListing.pm @@ -247,7 +247,11 @@ By specifying this method, you activate this feature. sub getAutoCommitWorkflowId { my $self = shift; - return $self->getParent->get("submissionApprovalWorkflowId"); + + if($self->session->form->process("assetId") eq "new"){ + return $self->getParent->get("submissionApprovalWorkflowId"); + } + return undef; } #-------------------------------------------------------------------