diff --git a/CHANGELOG.md b/CHANGELOG.md index 54a392a60..00cf7b471 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/protected/application/lib/MapasCulturais/Utils.php b/src/protected/application/lib/MapasCulturais/Utils.php index 05784a3b1..ce10aa538 100644 --- a/src/protected/application/lib/MapasCulturais/Utils.php +++ b/src/protected/application/lib/MapasCulturais/Utils.php @@ -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); } diff --git a/version.txt b/version.txt index 848752579..554960d31 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -5.9.5 \ No newline at end of file +5.9.6 \ No newline at end of file