From 21eb7616a11906a19260a081070a6b1c51820fa3 Mon Sep 17 00:00:00 2001 From: Sem Date: Sat, 14 Jul 2012 22:24:09 +0200 Subject: Refs #1334. Readded hidden input in edit page form, only on page creation. --- mod/pages/views/default/forms/pages/edit.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod/pages/views/default') diff --git a/mod/pages/views/default/forms/pages/edit.php b/mod/pages/views/default/forms/pages/edit.php index 583dc414f..653a7ee47 100644 --- a/mod/pages/views/default/forms/pages/edit.php +++ b/mod/pages/views/default/forms/pages/edit.php @@ -57,6 +57,12 @@ echo elgg_view('input/hidden', array( 'name' => 'container_guid', 'value' => $vars['container_guid'], )); +if (!$vars['guid']) { + echo elgg_view('input/hidden', array( + 'name' => 'parent_guid', + 'value' => $vars['parent_guid'], + )); +} echo elgg_view('input/submit', array('value' => elgg_echo('save'))); -- cgit v1.2.3