[Suiviobsmer-commits] r1245 - trunk/wao-business/src/main/java/fr/ifremer/wao/entity
Author: bleny Date: 2011-05-01 14:51:23 +0000 (Sun, 01 May 2011) New Revision: 1245 Log: fix bugs when clearing observers when changing program of a sample row Modified: trunk/wao-business/src/main/java/fr/ifremer/wao/entity/SampleRowImpl.java Modified: trunk/wao-business/src/main/java/fr/ifremer/wao/entity/SampleRowImpl.java =================================================================== --- trunk/wao-business/src/main/java/fr/ifremer/wao/entity/SampleRowImpl.java 2011-04-29 14:29:07 UTC (rev 1244) +++ trunk/wao-business/src/main/java/fr/ifremer/wao/entity/SampleRowImpl.java 2011-05-01 14:51:23 UTC (rev 1245) @@ -469,6 +469,8 @@ super.setCompany(company); // clear observers because if the sample row is moved to another company, // we can't imagine that the observers will remains the same - clearObservers(); + if (getObsProgram() == ObsProgram.OBSDEB) { + clearObservers(); + } } }
participants (1)
-
bleny@users.labs.libre-entreprise.org