Integrate revision 5905

Fix from Paul (phib) BF [ 2032185 ] Periods should not overlap
Improvement: use log.saveError instead of log.log in beforeSave
This commit is contained in:
Carlos Ruiz 2009-03-13 20:50:15 +00:00
parent 65c863c116
commit 318ef4fe8c
1 changed files with 1 additions and 2 deletions

View File

@ -581,8 +581,7 @@ public class MPeriod extends X_C_Period
{ {
if ( periods.get(i).getC_Period_ID() != getC_Period_ID() ) if ( periods.get(i).getC_Period_ID() != getC_Period_ID() )
{ {
log.log(Level.WARNING, "Period overlaps with: " log.saveError("Error", "Period overlaps with: " + periods.get(i).getName());
+ periods.get(i).getName());
return false; return false;
} }
} }