From 09d94d4dee188070b730a49be7bbb0398e24b1a5 Mon Sep 17 00:00:00 2001
From: Earl Miles <merlin@logrus.com>
Date: Fri, 27 Mar 2009 22:22:29 +0000
Subject: [PATCH] #388306: Fix destruction of original page when cloning a
 page.

---
 delegator/plugins/tasks/page.admin.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/delegator/plugins/tasks/page.admin.inc b/delegator/plugins/tasks/page.admin.inc
index 24382833..af36f95c 100644
--- a/delegator/plugins/tasks/page.admin.inc
+++ b/delegator/plugins/tasks/page.admin.inc
@@ -1417,6 +1417,8 @@ function delegator_page_clone_subtask_submit(&$form, &$form_state) {
   }
 
   $page->name = $name;
+  unset($page->pid);
+
   delegator_page_set_page_cache($page);
   $form_state['redirect'] = 'admin/build/pages/edit/' . $page->name;
 }
-- 
GitLab