Index: openacs-4/packages/acs-templating/www/doc/demo/list8/add-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/demo/list8/add-edit.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-templating/www/doc/demo/list8/add-edit.tcl 13 Feb 2006 13:05:50 -0000 1.2 +++ openacs-4/packages/acs-templating/www/doc/demo/list8/add-edit.tcl 13 Feb 2006 14:15:08 -0000 1.3 @@ -106,23 +106,10 @@ } -after_submit { - # We've successfully processed the submission. - # Clear the pagination cache. + # We've successfully processed the submission, send the user back to the index page. - cache flush notes* - - # send the user back to the index page - ad_returnredirect "./" - # NOTE! guess what, we wouldn't be done here; there is a problem: - # notice that when you add a note when you have filters active, - # it doesn't remember your filters when you come back from editing. - # - # we've decided this is beyond the scope of this tutorial and you - # can learn more by studying the function export_vars (which would - # be applied to the filter variables) - # ad_returnredirect returns after redirecting the user, so abort the script rather # than fall through to the display code. Failure to abort the script will burden # your server with needless template processing, though the user won't notice due to