Skip to content

Commit

Permalink
Fixed issues with search
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jan 5, 2021
1 parent 0506072 commit 69a4800
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions Controller/GrouperGroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function groupOwner()
if (isset($this->request->data['search'])){
$searchCriteria = urldecode($this->request->data['search']);
$this->set('groupergroupsowner', $this->GrouperGroup->getSearchedGroups($this->userId, $searchCriteria, 'groupOwner'));
$this->set('searchcriteria', $searchCriteria);
} else {
$this->set('groupergroupsowner', $this->GrouperGroup->ownerGroups($this->userId));
}
Expand Down
2 changes: 1 addition & 1 deletion View/Elements/Components/search.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $(function() {
<div>
<div class="d-flex">
<div class="input-group input-group-search">
<?php echo $this->Form->input("search", array('class' => 'form-control', 'value' => isset($searchcriteria) ? $searchcriteria : '')) ?>
<?php echo $this->Form->input("search", array('label' => false, 'class' => 'form-control', 'value' => isset($searchcriteria) ? $searchcriteria : '')) ?>
<!--<input type="text" name="search" class="form-control" value="<?php echo isset($searchcriteria) ? $searchcriteria : ''; ?>" /> -->
<div class="input-group-append">
<button class="btn btn-outline-secondary px-4" type="submit" value="Submit">
Expand Down
8 changes: 8 additions & 0 deletions webroot/css/co-grouper-plugin.css
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,12 @@ a {

.tt-cursor {
background-color: #EEE;
}

.input-group > .input.text {
position: relative;
flex: 1 1 auto;
width: 1%;
min-width: 0;
margin-bottom: 0;
}

0 comments on commit 69a4800

Please sign in to comment.