[dev] Patch for Save as New in Kronolith

Jason Rust jrust at rustyparts.com
Fri May 9 17:23:57 PDT 2003


Below is a patch that fixes a bug whereby saving an event as new took
you back to the view page for the original event.  It now acts like add
by taking you to the default view.

-Jason

Index: editeventaction.php
===================================================================
RCS file: /repository/kronolith/editeventaction.php,v
retrieving revision 1.42
diff -u -r1.42 editeventaction.php
--- editeventaction.php 8 May 2003 13:31:19 -0000       1.42
+++ editeventaction.php 9 May 2003 21:17:17 -0000
@@ -39,6 +39,8 @@
             if (Horde::getFormData('saveAsNew')) {
                 $calendar->open($target);
                 $event = $calendar->getEventObject();
+                // don't want to view old event on save
+                unset($url);
             } else {
                 if ($target != $source) {
                     // Only delete the event from the source calendar



More information about the dev mailing list