Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe

Commits:

1 changed file:

Changes:

  • persistence/src/main/java/fr/ird/observe/entities/seine/ActivitySeines.java
    ... ... @@ -123,10 +123,15 @@ public class ActivitySeines {
    123 123
          */
    
    124 124
         public static SchoolType getSchoolType(ActivitySeine a) {
    
    125 125
     
    
    126
    +        if (a.isFloatingObjectNotEmpty()) {
    
    127
    +            // see https://gitlab.com/ultreiaio/ird-observe/issues/938
    
    128
    +            return SchoolType.objet;
    
    129
    +        }
    
    130
    +
    
    126 131
             // par defaut, on suppose que la set est sur BL
    
    127 132
             SchoolType type = SchoolType.libre;
    
    128 133
     
    
    129
    -        if (!a.isObservedSystemEmpty()) {
    
    134
    +        if (a.isObservedSystemNotEmpty()) {
    
    130 135
     
    
    131 136
                 SchoolType boCode = SchoolType.objet;
    
    132 137