Author: jfthomps
Date: Mon May  7 18:54:54 2012
New Revision: 1335191

URL: http://svn.apache.org/viewvc?rev=1335191&view=rev
Log:
VCL-567
image profile page does not reflect owner change after changing the owner

images.php: modified submitEditImage - changed from calling viewImages to using 
a header redirect to load the page again with state viewImages

states.php: added submitEditImage to noHTMLwrappers

Modified:
    incubator/vcl/trunk/web/.ht-inc/images.php
    incubator/vcl/trunk/web/.ht-inc/states.php

Modified: incubator/vcl/trunk/web/.ht-inc/images.php
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/images.php?rev=1335191&r1=1335190&r2=1335191&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/images.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/images.php Mon May  7 18:54:54 2012
@@ -1946,7 +1946,9 @@ function confirmEditOrAddImage($state) {
 function submitEditImage() {
        $data = getContinuationVar();
        updateImage($data);
-       viewImages();
+       $cdata = array('showimageupdated' => 1);
+       $cont = addContinuationsEntry('viewImages', $cdata);
+       header("Location: " . BASEURL . SCRIPT . "?continuation=$cont");
 }
 
 
////////////////////////////////////////////////////////////////////////////////

Modified: incubator/vcl/trunk/web/.ht-inc/states.php
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/states.php?rev=1335191&r1=1335190&r2=1335191&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/states.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/states.php Mon May  7 18:54:54 2012
@@ -182,6 +182,7 @@ $noHTMLwrappers = array('sendRDPfile',
                         'jsonUserGroupStore',
                         'jsonResourceGroupStore',
                         'changeLocale',
+                        'submitEditImage',
 );
 
 # main


Reply via email to