Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011752Openbravo ERPA. Platformpublic2009-12-11 18:452012-03-29 17:14
shuehner 
alostale 
urgentmajorhave not tried
closedduplicate 
5
2.40 
 
Core
No
0011752: Default values of WAD generated windows do not work always.
The select statement used by wad to retrieve the list of column having a default value (FieldsData.selectDefaultValue) does not have an order by and is used two times per Tab.

The order of rows returned without order by is random (but in practice often the same)

If the database returns the rows with different order in two different wad-compilations it will works but the generated code is different which is ugly.

If the database returns the rows with different order inside one wad-compilation (can happen as wad calls the same select twice per tab) no compilation error will happen but the default values will be assigned randomly (i.e. line-number default value assigned into another field)
No always reproducible steps available
Add order by to the select to garantee deterministic order.
No tags attached.
duplicate of defect 0014235 closed shuehner Missing order by clause in Field_data.xsql selectDefaultValue method 
Issue History
2009-12-11 18:45shuehnerNew Issue
2009-12-11 18:45shuehnerAssigned To => rafaroda
2009-12-11 18:45shuehnerversionpi => 2.40
2009-12-14 14:34shuehnerRelationship addedrelated to 0011530
2009-12-14 22:05shuehnerRelationship deletedrelated to 0011530
2010-02-11 18:32rafarodaAssigned Torafaroda => alostale
2010-02-15 12:53alostaleStatusnew => scheduled
2010-02-15 12:53alostalefix_in_branch => pi
2012-03-29 17:14shuehnerRelationship addedduplicate of 0014235
2012-03-29 17:14shuehnerStatusscheduled => closed
2012-03-29 17:14shuehnerResolutionopen => duplicate

There are no notes attached to this issue.