Skip to content

Commit

Permalink
Merge pull request #8947 from portabilis/community-patch-2022-06-27
Browse files Browse the repository at this point in the history
Community patch 27/06/2022
  • Loading branch information
edersoares authored Jul 10, 2022
2 parents 2b00283 + e6d5ae3 commit 79a7e41
Show file tree
Hide file tree
Showing 210 changed files with 263 additions and 13,063 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/Api/PostalCodeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ protected function notFound()
*/
public function search(Client $http, $postalCode)
{
$postalCode = intval($postalCode);

try {
$response = $http->get("https://viacep.com.br/ws/{$postalCode}/json/");
} catch (Throwable $throwable) {
Expand Down
2 changes: 2 additions & 0 deletions app/Providers/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ private function registerGates()
if ($user->isAdmin()) {
return true;
}

return null;
});

Gate::define('view', ProcessPolicy::class . '@view');
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Software livre de gestão escolar",
"type": "project",
"license": "GPL-2.0-or-later",
"version": "2.7.1",
"version": "2.7.2",
"keywords": [
"Portabilis",
"i-Educar"
Expand Down
55 changes: 28 additions & 27 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ public function up()
'legacy.apis.educacao_token_key' => null,
'legacy.app.name' => 'i-Educar',
'legacy.app.diario.nomenclatura_exame' => '0',
'legacy.app.database.hostname' => '********',
'legacy.app.database.port' => '********',
'legacy.app.database.dbname' => '********',
'legacy.app.database.username' => '********',
'legacy.app.database.password' => '********',
'legacy.app.database.hostname' => 'localhost',
'legacy.app.database.port' => '5432',
'legacy.app.database.dbname' => 'ieducar',
'legacy.app.database.username' => 'ieducar',
'legacy.app.database.password' => 'ieducar',
'legacy.app.administrative_pending.exist' => null,
'legacy.app.administrative_pending.msg' => '<p>Identificamos pendências administrativas da sua instituição para utilização do sistema. Sendo assim, pedimos que o responsável pelo sistema entre em contato com o Administrador do sistema o mais breve.</p><br/><b>Telefone:</b> (xx) xxxx-xxxx <br/> <b>E-mail:</b> [email protected]',
'legacy.app.aws.bucketname' => null,
Expand Down
2 changes: 0 additions & 2 deletions ieducar/intranet/atendidos_cad.php
Original file line number Diff line number Diff line change
Expand Up @@ -1089,8 +1089,6 @@ protected function validatePhoto()

return false;
}

return false;
} else {
$this->objPhoto = null;

Expand Down
69 changes: 0 additions & 69 deletions ieducar/intranet/conexoes_lst.php

This file was deleted.

79 changes: 0 additions & 79 deletions ieducar/intranet/conexoes_todos_lst.php

This file was deleted.

2 changes: 2 additions & 0 deletions ieducar/intranet/educar_acervo_det.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ public function Gerar()
$obj = new clsPmieducarAcervoAssunto();
$obj = $obj->listaAssuntosPorObra($this->cod_acervo);
if (is_array($obj) && count($obj)) {
$assuntos = '';
foreach ($obj as $reg) {
$assuntos.= '<span style="background-color: #ccdce6; padding: 4px 20px;"><b>'.$reg['nome'].'</b></span>&nbsp; ';
}
Expand All @@ -192,6 +193,7 @@ public function Gerar()
$obj_categoria = new clsPmieducarCategoriaAcervo();
$obj_categoria = $obj_categoria->listaCategoriasPorObra($this->cod_acervo);
if (is_array($obj_categoria) && count($obj_categoria)) {
$categorias = '';
foreach ($obj_categoria as $obj_cat) {
$categorias.= '<span style="background-color: #ccdce6; padding: 4px 20px;"><b>'.$obj_cat['descricao'].'</b></span>&nbsp; ';
}
Expand Down
Loading

0 comments on commit 79a7e41

Please sign in to comment.