Skip to content

Commit

Permalink
Merge pull request #331 from secultce/develop
Browse files Browse the repository at this point in the history
fix: Tratando existência do getMetadata ao usar getTermsByOpportunity
  • Loading branch information
Junior-Shyko authored Nov 29, 2024
2 parents 6ff2057 + 9ef8cbd commit fbe3d53
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Todas as mudanças notáveis no projeto serão documentadas neste arquivo.
O formato é baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.0.0/)
e este projeto adere ao [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.9.6] - 2024-11-29
### Corrigido
- Corrigindo bug de metadata do relacionamento de entidade com selos

## [5.9.5] - 2024-11-25
### Corrigido
- Corrigido renderização da lista de inscritos na aba de avaliação
Expand Down
5 changes: 5 additions & 0 deletions src/protected/application/lib/MapasCulturais/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ static function getTermsByOpportunity($text, $opportunity)
'avaliada' => 'monitorada',
];


if (!method_exists($opportunity, 'getMetadata')) {
return $text;
}

if ($opportunity->getMetadata('use_multiple_diligence') === 'Sim') {
$text = strtr($text, $terminology);
}
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.9.5
5.9.6

0 comments on commit fbe3d53

Please sign in to comment.