From 318ef4fe8c6251c3ee5dfeb16944ff0cd062f550 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 13 Mar 2009 20:50:15 +0000 Subject: [PATCH] Integrate revision 5905 Fix from Paul (phib) BF [ 2032185 ] Periods should not overlap Improvement: use log.saveError instead of log.log in beforeSave --- base/src/org/compiere/model/MPeriod.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/src/org/compiere/model/MPeriod.java b/base/src/org/compiere/model/MPeriod.java index 532f18e962..2ddf3bd68c 100644 --- a/base/src/org/compiere/model/MPeriod.java +++ b/base/src/org/compiere/model/MPeriod.java @@ -581,8 +581,7 @@ public class MPeriod extends X_C_Period { if ( periods.get(i).getC_Period_ID() != getC_Period_ID() ) { - log.log(Level.WARNING, "Period overlaps with: " - + periods.get(i).getName()); + log.saveError("Error", "Period overlaps with: " + periods.get(i).getName()); return false; } }