Skip to content

Commit

Permalink
Fix lost visibility options for snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed Jun 18, 2021
1 parent f8784af commit b178221
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

1.4.3 (Unreleased)
---------------------
- Fix #187: Fix lost visibility options for snippets


1.4.2 (June 11, 2021)
---------------------
- Enh #163: Attachments for HTML pages
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Custom Pages",
"description": "Allows admins to create custom pages (html or markdown) or external links to various navigations (e.g. top navigation, account menu).",
"keywords": ["pages", "custom", "iframe", "markdown", "link", "navigation", "spaces"],
"version": "1.4.2",
"version": "1.4.3",
"homepage": "https://github.com/humhub/custom-pages",
"humhub": {
"minVersion": "1.8"
Expand Down
5 changes: 2 additions & 3 deletions views/common/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,10 @@
If no abstract is given or the page is only visible for admins, no stream entry will be created.') ?>
</div>
<?= $form->endCollapsibleFields(); ?>

<?= $form->field($page, 'visibility')->radioList($page->getVisibilitySelection()) ?>

<?php endif; ?>

<?= $form->field($page, 'visibility')->radioList($page->getVisibilitySelection()) ?>

<?= Button::save()->submit() ?>

<?php if (!$page->isNewRecord) : ?>
Expand Down

0 comments on commit b178221

Please sign in to comment.