Skip to content

Commit 205fe4c

Browse files
authored
Versão 2025.10.1 (#237)
2 parents 4e0795c + e69a309 commit 205fe4c

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

src/controllers/taxonomias-controller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ export const cadastrarEspecie = (request, response, next) => {
649649
where: {
650650
nome,
651651
genero_id: generoId,
652+
ativo: true,
652653
},
653654
transaction,
654655
}))

src/validators/especie-atualiza.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ export default {
1212
isInt: true,
1313
isEmpty: false,
1414
},
15-
familia_id: {
16-
in: 'body',
17-
isInt: true,
18-
isEmpty: false,
19-
},
2015
autor_id: {
2116
in: 'body',
2217
isInt: true,

src/views/ficha-tombo.ejs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
}
8888
8989
.linha-vazia {
90-
height: 5px;
90+
height: 1.5px;
9191
}
9292
9393
.items-center {
@@ -157,10 +157,13 @@
157157
<div class="flex flex-col pad-padrao gap-1">
158158
<% if (familia && familia.nome) { %>
159159
<div>
160-
<b class="fs-14">Família: </b> <%- tombo.familia.nome %>
160+
<b class="fs-14">Família: </b>
161+
<% if (familia && familia.nome.toLowerCase() !== 'indeterminada') { %>
162+
<%- tombo.familia.nome %>
163+
<% } %>
161164
<% if (tombo && tombo.sub_familia) { %>
162165
- <%- subfamilia.nome %>
163-
<% } %>
166+
<% } %>
164167
</div>
165168
<% } %>
166169
@@ -251,7 +254,6 @@
251254
<% } %>
252255
</div>
253256
254-
<div class="linha-vazia"></div>
255257
<div class="linha-vazia"></div>
256258
257259
<div class="flex start-between">

0 commit comments

Comments
 (0)