Skip to content

Commit

Permalink
Merge pull request #677 from bulfaitelo/fix4
Browse files Browse the repository at this point in the history
Alteração na busca
  • Loading branch information
Pr3d4dor authored Apr 21, 2020
2 parents cfd79c2 + ba7637f commit b6e6bad
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Todas as alterações serão documentadas neste arquivo
Formato baseado em [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
e [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.5.1] - 2020-04-21

### Changed
- Adicionando Descrição na busca geral, juntamente da coluna no resultado. [@bulfaitelo](https://github.com/bulfaitelo)

## [4.5.0] - 2020-04-19

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

![MapOS](https://raw.githubusercontent.com/RamonSilva20/mapos/master/assets/img/logo.png)

![version](https://img.shields.io/badge/version-4.5.0-blue.svg?longCache=true&style=flat-square)
![version](https://img.shields.io/badge/version-4.5.1-blue.svg?longCache=true&style=flat-square)
![license](https://img.shields.io/badge/license-MIT-green.svg?longCache=true&style=flat-square)
![theme](https://img.shields.io/badge/theme-Matrix--Admin-lightgrey.svg?longCache=true&style=flat-square)
![issues](https://img.shields.io/github/issues/RamonSilva20/mapos.svg?longCache=true&style=flat-square)
Expand Down
2 changes: 1 addition & 1 deletion application/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* App current version
*/
$config['app_version'] = '4.5.0';
$config['app_version'] = '4.5.1';

/**
* Nome do sistema
Expand Down
3 changes: 2 additions & 1 deletion application/models/Mapos_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public function pesquisar($termo)
$data['clientes'] = $this->db->get('clientes')->result();

// buscando os
$this->db->like('idOs', $termo);
$this->db->like('idOs', $termo);
$this->db->or_like('descricaoProduto', $termo);
$this->db->limit(5);
$data['os'] = $this->db->get('os')->result();

Expand Down
2 changes: 2 additions & 0 deletions application/views/mapos/pesquisa.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
<tr style="backgroud-color: #2D335B">
<th>#</th>
<th>Data Inicial</th>
<th>Descrição</th>
<th>Defeito</th>
<th></th>
</tr>
Expand All @@ -178,6 +179,7 @@
echo '<tr>';
echo '<td>' . $r->idOs . '</td>';
echo '<td>' . $dataInicial . '</td>';
echo '<td>' . $r->descricaoProduto . '</td>';
echo '<td>' . $r->defeito . '</td>';
echo '<td>';
if ($this->permission->checkPermission($this->session->userdata('permissao'), 'vOs')) {
Expand Down

0 comments on commit b6e6bad

Please sign in to comment.