Skip to content

Commit b57cea0

Browse files
review comments
1 parent 0245c21 commit b57cea0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

sormas-backend/src/main/resources/sql/sormas_schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13828,7 +13828,7 @@ ALTER TABLE surveytokens_history ADD COLUMN responsereceiveddate timestamp;
1382813828

1382913829
INSERT INTO schema_version (version_number, comment) VALUES (560, 'Create survey tokens pages #13253');
1383013830

13831-
-- added new column as vectortype for environment and environment sample
13831+
-- 2025-03-11 added new column as vectortype for environment and environment sample #13267
1383213832
ALTER TABLE environments ADD column IF NOT EXISTS vectortype varchar(255);
1383313833
ALTER TABLE environmentsamples ADD column IF NOT EXISTS vectortype varchar(255);
1383413834

sormas-ui/src/main/java/de/symeda/sormas/ui/environment/EnvironmentCreateForm.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class EnvironmentCreateForm extends AbstractEditForm<EnvironmentDto> {
3636

3737
//@formatter:off
3838
private static final String HTML_LAYOUT = fluidRowLocs(EnvironmentDto.REPORT_DATE, EnvironmentDto.EXTERNAL_ID)
39-
+ fluidRowLocs(EnvironmentDto.ENVIRONMENT_MEDIA, "") + fluidRowLocs(EnvironmentDto.ENVIRONMENT_NAME, "")+
39+
+ fluidRowLocs(EnvironmentDto.ENVIRONMENT_MEDIA, "") + fluidRowLocs(EnvironmentDto.ENVIRONMENT_NAME, "") +
4040
fluidRowLocs(EnvironmentDto.VECTOR_TYPE, "")+
4141
loc(LOCATION_HEADING_LOC) +
4242
fluidRowLocs(EnvironmentDto.LOCATION) +
@@ -89,7 +89,7 @@ protected void addFields() {
8989
FieldHelper.updateItems(responsibleUserField, responsibleUsers);
9090

9191
environmentMedia.addValueChangeListener(valueChangeEvent -> {
92-
if (EnvironmentMedia.VECTORS.toString().equalsIgnoreCase(valueChangeEvent.getProperty().getValue().toString())) {
92+
if (EnvironmentMedia.VECTORS.equals(valueChangeEvent.getProperty().getValue())) {
9393
vectorType.setVisible(true);
9494
} else {
9595
vectorType.setVisible(false);

0 commit comments

Comments
 (0)