diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-14 21:44:14 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-14 21:44:14 -0400 |
commit | 2e0cc0343715adec8a0843750016f89acc3c2394 (patch) | |
tree | 9205cbf231ef9f2035a8d29b4834f44c7e86e7d0 /views/default/page/layouts | |
parent | 1ed326672a833f020bdb15f0b9cb047ab57f0b5b (diff) | |
download | elgg-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')
-rw-r--r-- | views/default/page/layouts/widgets.php | 1 | ||||
-rw-r--r-- | views/default/page/layouts/widgets/add_panel.php | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/views/default/page/layouts/widgets.php b/views/default/page/layouts/widgets.php index e3819cc20..c6b162516 100644 --- a/views/default/page/layouts/widgets.php +++ b/views/default/page/layouts/widgets.php @@ -31,6 +31,7 @@ if (elgg_can_edit_widget_layout($context)) { 'widgets' => $widgets, 'context' => $context, 'exact_match' => $exact_match, + 'show_access' => $show_access, ); echo elgg_view('page/layouts/widgets/add_panel', $params); } 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> |