Skip to content

Commit

Permalink
fixed: correctly pass show_access to newly added widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Oct 7, 2022
1 parent 93f2e0b commit 3bd3d49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion views/default/resources/widgets/add_panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@
if (!$widget_type->multiple) {
$action .= elgg_format_element('span', ['class' => 'elgg-quiet'], elgg_echo('widget:unavailable'));
}

$add_link = elgg_http_add_url_query_elements('action/widgets/add', [
'handler' => $handler,
'page_owner_guid' => $owner_guid,
'context' => $context,
'show_access' => elgg_extract('show_access', $vars),
'show_access' => elgg_extract('show_access', $vars, get_input('show_access')),
'default_widgets' => elgg_in_context('default_widgets'),
]);

Expand Down

0 comments on commit 3bd3d49

Please sign in to comment.