Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Include non-visible elements option for BS2 clipboard exp. (#1894) #1895

Open
wants to merge 1 commit into
base: qa/2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/qubit/modules/clipboard/actions/exportAction.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ public function execute($request)
// options enabled
// and, user is authenticated
$this->nonVisibleElementsIncluded = $this->showOptions
&& $this->context->user->isAdministrator()
&& 'on' == $request->getParameter('includeNonVisibleElements');
&& $this->context->user->isAdministrator()
&& 'on' == $request->getParameter('includeNonVisibleElements');

parent::execute($request);

Expand Down
5 changes: 4 additions & 1 deletion apps/qubit/modules/clipboard/templates/exportSuccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<section id="content">

<div id="export-options" data-export-toggle="tooltip" data-export-title="<?php echo __('Export'); ?>" data-export-alert-message="<?php echo __('Error: You must have at least one %1%Level of description%2% selected or choose %1%Include all descendant levels of description%2% to proceed.', ['%1%' => '<strong>', '%2%' => '</strong>']); ?>">

<fieldset class="collapsible">

<legend><?php echo __('Export options'); ?></legend>
Expand Down Expand Up @@ -58,6 +58,9 @@
<?php if (isset($form->includeDrafts)) { ?>
<?php echo $form->includeDrafts->renderRow(); ?>
<?php } ?>
<?php if (isset($form->includeNonVisibleElements)) { ?>
<?php echo $form->includeNonVisibleElements->renderRow(); ?>
<?php } ?>
<?php if (!empty($helpMessages)) { ?>
<div class="alert alert-info generic-help animateNicely">
<?php foreach ($sf_data->getRaw('helpMessages') as $helpMessage) { ?>
Expand Down
Loading