aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/views
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-07-14 22:24:09 +0200
committerSem <sembrestels@riseup.net>2012-07-14 22:24:09 +0200
commit21eb7616a11906a19260a081070a6b1c51820fa3 (patch)
treeeb8e723ae0094fc4c0ec7f824927245614bff84e /mod/pages/views
parent3bd71fbe0aa4a64021c4c2d59b0782faba8c22b6 (diff)
downloadelgg-21eb7616a11906a19260a081070a6b1c51820fa3.tar.gz
elgg-21eb7616a11906a19260a081070a6b1c51820fa3.tar.bz2
Refs #1334. Readded hidden input in edit page form, only on page creation.
Diffstat (limited to 'mod/pages/views')
-rw-r--r--mod/pages/views/default/forms/pages/edit.php6
1 files changed, 6 insertions, 0 deletions
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')));