aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-11-12 00:27:48 +0100
committerSem <sembrestels@riseup.net>2011-11-12 00:27:48 +0100
commit9b176145bc10850e02b8602bb670d6832945ea83 (patch)
tree87e7144654c41d974b3a873ecd49571f58200564
parent6bf0fd153040b94751cc8fffde9f1b1f56524a06 (diff)
downloadelgg-9b176145bc10850e02b8602bb670d6832945ea83.tar.gz
elgg-9b176145bc10850e02b8602bb670d6832945ea83.tar.bz2
Fixes two bugs when editing a video.
-rw-r--r--actions/videolist/edit.php2
-rw-r--r--pages/videolist/edit.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/actions/videolist/edit.php b/actions/videolist/edit.php
index f9db7b6a2..72e1d2427 100644
--- a/actions/videolist/edit.php
+++ b/actions/videolist/edit.php
@@ -18,7 +18,7 @@ foreach ($variables as $name => $type) {
}
// Get guids
-$videolist_guid = (int)get_input('videolist_guid');
+$video_guid = (int)get_input('video_guid');
$container_guid = (int)get_input('container_guid');
elgg_make_sticky_form('videolist');
diff --git a/pages/videolist/edit.php b/pages/videolist/edit.php
index 5ca1e4b64..916d9d280 100644
--- a/pages/videolist/edit.php
+++ b/pages/videolist/edit.php
@@ -36,6 +36,7 @@ $body_vars = array('guid' => $guid);
foreach(array_keys(elgg_get_config('videolist')) as $variable) {
$body_vars[$variable] = $videolist_item->$variable;
}
+$body_vars['container_guid'] = $videolist_item->container_guid;
$content = elgg_view_form('videolist/edit', $form_vars, $body_vars);