diff options
author | Sem <sembrestels@riseup.net> | 2012-07-14 22:24:09 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-07-14 22:24:09 +0200 |
commit | 21eb7616a11906a19260a081070a6b1c51820fa3 (patch) | |
tree | eb8e723ae0094fc4c0ec7f824927245614bff84e /mod/pages/views | |
parent | 3bd71fbe0aa4a64021c4c2d59b0782faba8c22b6 (diff) | |
download | elgg-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.php | 6 |
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'))); |