From 6c860625a29238f125034a614728e5f527aa6bbe Mon Sep 17 00:00:00 2001 From: Len Kranendonk Date: Wed, 28 Jul 2004 09:01:15 +0000 Subject: [PATCH] reset scratch variable after edit --- lib/WebGUI/Wobject/WobjectProxy.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/WebGUI/Wobject/WobjectProxy.pm b/lib/WebGUI/Wobject/WobjectProxy.pm index 053dda5e8..41e0e3524 100644 --- a/lib/WebGUI/Wobject/WobjectProxy.pm +++ b/lib/WebGUI/Wobject/WobjectProxy.pm @@ -165,6 +165,14 @@ sub www_edit { ); } +#------------------------------------------------------------------- +sub www_editSave { + $_[0]->SUPER::www_editSave(); # This will do the priv check as well. + my $scratchId = "WobjectProxy_" . $_[0]->get("wobjectId"); + WebGUI::Session::deleteAllScratch($scratchId); + return ""; +} + #------------------------------------------------------------------- sub _drawQueryBuilder { # Initialize operators