Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0008624
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2009-04-17 15:392009-06-04 00:00
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version2.50MP1
StatusclosedFix in branchFixed in SCM revision8b4f72c8b336
ProjectionnoneETAnoneTarget Versionpi
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0008624: Validation should not check field length of id/foreign key columns

DescriptionTranscript of email:
Martin,

there is a problem when importing a client with validations. The system
cheks for ad_column.fieldlengh for ID and foreign key columns, and there are
a lot that are not properly defined... So it is quite frequent to get an
error (fieldlenght expected: 32 but it is 22).

You can get all wrong columns through a simple query:

select * from ad_column
where fieldlength = 22
and ad_reference_id in (13, 18, 19, 30, 35)

In my opinion the solution is not to change this fieldlength but remove the
validation for this case. For ID and foreign key columns the fieldlength is
useless, we dont use it. In fact, we should add a display logic to hide this
field in case of these references...

Can you please complete the list of references that are ID or foreign key? I
prepared that list from the list of wrong columns, so there will be other
references for foreign keys.
Martin, can you please remove this validation (just for those references)?
Asier, can you please add a display logic to hide this field for those
references?

Thanks,

Ismael
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0015994)
hgbot (developer)
2009-05-01 14:38

Repository: erp/devel/pi
Changeset: 8b4f72c8b336e7cd54bc889ee5edd819043df836
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri May 01 14:37:55 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8b4f72c8b336e7cd54bc889ee5edd819043df836 [^]

Fixes issue 8624: Validation should not check field length of id/foreign key columns

---
M src-test/org/openbravo/test/dal/ValidationTest.java
M src/org/openbravo/base/validation/StringPropertyValidator.java
---

- Issue History
Date Modified Username Field Change
2009-04-17 15:39 mtaal New Issue
2009-04-17 15:39 mtaal Assigned To => mtaal
2009-04-17 15:39 mtaal Regression testing => No
2009-04-22 20:17 psarobe Status new => scheduled
2009-05-01 14:38 hgbot Checkin
2009-05-01 14:38 hgbot Note Added: 0015994
2009-05-01 14:38 hgbot Status scheduled => resolved
2009-05-01 14:38 hgbot Resolution open => fixed
2009-05-01 14:38 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8b4f72c8b336e7cd54bc889ee5edd819043df836 [^]
2009-06-03 17:09 psarobe Status resolved => closed
2009-06-04 00:00 anonymous sf_bug_id 0 => 2800772


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker