aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/layouts/widgets/add_panel.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-14 21:44:14 -0400
committerCash Costello <cash.costello@gmail.com>2012-07-14 21:44:14 -0400
commit2e0cc0343715adec8a0843750016f89acc3c2394 (patch)
tree9205cbf231ef9f2035a8d29b4834f44c7e86e7d0 /views/default/page/layouts/widgets/add_panel.php
parent1ed326672a833f020bdb15f0b9cb047ab57f0b5b (diff)
downloadelgg-2e0cc0343715adec8a0843750016f89acc3c2394.tar.gz
elgg-2e0cc0343715adec8a0843750016f89acc3c2394.tar.bz2
Fixes #4661 not showing access on widgets loaded through ajax if the layout does not show access
Diffstat (limited to 'views/default/page/layouts/widgets/add_panel.php')
-rw-r--r--views/default/page/layouts/widgets/add_panel.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/views/default/page/layouts/widgets/add_panel.php b/views/default/page/layouts/widgets/add_panel.php
index 9eb78cdb6..d9b11342a 100644
--- a/views/default/page/layouts/widgets/add_panel.php
+++ b/views/default/page/layouts/widgets/add_panel.php
@@ -50,10 +50,13 @@ foreach ($widgets as $column_widgets) {
?>
</ul>
<?php
- $params = array(
+ echo elgg_view('input/hidden', array(
'name' => 'widget_context',
'value' => $context
- );
- echo elgg_view('input/hidden', $params);
+ ));
+ echo elgg_view('input/hidden', array(
+ 'name' => 'show_access',
+ 'value' => (int)$vars['show_access']
+ ));
?>
</div>