Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/shared/model/FacetRecord.java @ 804:374712890b94
Facets read from Collection's DESCRIBE document keep all their attributes after the Collection's attribute has been modified.
flys-client/trunk@2362 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 19 Jul 2011 16:32:52 +0000 |
parents | 5277f46a63c2 |
children | 2c48d75c4ab7 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/FacetRecord.java Mon Jul 18 09:52:16 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/FacetRecord.java Tue Jul 19 16:32:52 2011 +0000 @@ -10,15 +10,13 @@ */ public class FacetRecord extends ListGridRecord { - protected boolean active; - protected Theme theme; public FacetRecord(Theme theme) { this.theme = theme; - setActive(theme.isActive()); + setActive(theme.getActive() == 1); setName(theme.getDescription()); } @@ -46,7 +44,6 @@ public void setActive(boolean active) { - this.active = active; setAttribute("active", active); } }