Skip to content

Commit 2d634ff

Browse files
committed
Only include search in pagination if search is set in the request.
1 parent d946290 commit 2d634ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongodbadmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ function findMongoDbDocument($id, $db, $collection, $forceCustomId = false)
572572
<?php if ($pages > 1): ?>
573573
<div id="pager">
574574
<?php echo $pages ?> pages. Go to page
575-
<input type="text" name="page" size="4" value="<?php echo $page ?>" onChange="javascript: location.href = '<?php echo $_SERVER['PHP_SELF'] . '?db=' . $_REQUEST['db'] . '&collection=' . $_REQUEST['collection'] ?>&search=<?php echo urlencode($_REQUEST['search']) ?>&page=' + this.value;" />
575+
<input type="text" name="page" size="4" value="<?php echo $page ?>" onChange="javascript: location.href = '<?php echo $_SERVER['PHP_SELF'] . '?db=' . $_REQUEST['db'] . '&collection=' . $_REQUEST['collection'] ?><?php if (isset($_REQUEST['search'])): ?>&search=<?php echo urlencode($_REQUEST['search']) ?><?php endif; ?>&page=' + this.value;" />
576576
<input type="button" name="go" value="Go" />
577577
</div>
578578
<?php endif; ?>

0 commit comments

Comments
 (0)