add filter for status 'S_DRAFT'

This commit is contained in:
Uwe Steinmann 2017-01-11 17:49:21 +01:00
parent 7a721ee84f
commit 66e6cec446
2 changed files with 4 additions and 0 deletions

View File

@ -289,6 +289,9 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"] && $settings->_enableFullSe
// status
$status = array();
if (isset($_GET["draft"])){
$status[] = S_DRAFT;
}
if (isset($_GET["pendingReview"])){
$status[] = S_DRAFT_REV;
}

View File

@ -359,6 +359,7 @@ $(document).ready( function() {
<td><?php printMLText("status");?>:</td>
<td>
<?php if($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') { ?>
<label class="checkbox" for='draft'><input type="checkbox" id="draft" name="draft" value="1" <?php echo in_array(S_DRAFT, $status) ? "checked" : ""; ?>><?php printOverallStatusText(S_DRAFT);?></label>
<?php if($workflowmode == 'traditional') { ?>
<label class="checkbox" for='pendingReview'><input type="checkbox" id="pendingReview" name="pendingReview" value="1" <?php echo in_array(S_DRAFT_REV, $status) ? "checked" : ""; ?>><?php printOverallStatusText(S_DRAFT_REV);?></label>
<?php } ?>