Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018957Openbravo ERPA. Platformpublic2011-11-02 14:022011-11-04 13:58
malsasua 
alostale 
immediatemajorsometimes
closedfixed 
20Community Appliance
 
3.0MP5 
Google Chrome
Core
No
0018957: in form mode, a field is not loaded
When you access in form mode to window, there is a field that it is not loaded.
When you exit of this record, the field is saved with blank.

FIC is responding correctly, but in processColumnValue in non-mandatory selectors, when the new value does not exist already in the field.valueMap, it is correctly added but not displayed.
-Install attached module (which adds a new non-madatory BP selector on Sales Order window).
-Add a big amount ob BPs (attached sql can be used)
-In Sales Order grid mode edit new field setting different BPs (specially ones with a high name alphabetically).
-Log out-log in
-Open in form view these edited records -> note assigned BP in new field disappears.



------

in OB@OB environment,
. window Service Contract
.field "end partner client"

open in form mode. then close record

No tags attached.
? create-bps.sql (1,040) 2011-11-02 17:55
https://issues.openbravo.com/file_download.php?file_id=4700&type=bug
? org.openbravo.issue18957-0.0.0.obx (2,237) 2011-11-02 17:56
https://issues.openbravo.com/file_download.php?file_id=4701&type=bug
Issue History
2011-11-02 14:02malsasuaNew Issue
2011-11-02 14:02malsasuaAssigned To => alostale
2011-11-02 14:02malsasuaWeb browser => Google Chrome
2011-11-02 14:02malsasuaModules => Core
2011-11-02 14:05malsasuaIssue Monitored: networkb
2011-11-02 17:55alostaleFile Added: create-bps.sql
2011-11-02 17:56alostaleFile Added: org.openbravo.issue18957-0.0.0.obx
2011-11-02 18:02alostaleWeb browserGoogle Chrome => Google Chrome
2011-11-02 18:02alostaleDescription Updatedbug_revision_view_page.php?rev_id=2866#r2866
2011-11-02 18:02alostaleSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=2868#r2868
2011-11-02 18:12hgbotCheckin
2011-11-02 18:12hgbotNote Added: 0042468
2011-11-02 18:12hgbotStatusnew => resolved
2011-11-02 18:12hgbotResolutionopen => fixed
2011-11-02 18:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/235f0b65a05907e71a28e2d81c1bd00c90b849c0 [^]
2011-11-03 09:47hgbotCheckin
2011-11-03 09:47hgbotNote Added: 0042474
2011-11-03 09:47hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/235f0b65a05907e71a28e2d81c1bd00c90b849c0 [^] => http://code.openbravo.com/erp/devel/pi/rev/98c34f99775f9c47840501015dd8c9bbc492e00c [^]
2011-11-03 09:52alostaleNote Added: 0042475
2011-11-03 10:51hgbotCheckin
2011-11-03 10:51hgbotNote Added: 0042476
2011-11-03 10:51hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/98c34f99775f9c47840501015dd8c9bbc492e00c [^] => http://code.openbravo.com/erp/devel/pi/rev/a5c64b5081f52c218d53619eb96f39343494b23c [^]
2011-11-04 06:29mtaalNote Added: 0042517
2011-11-04 06:29mtaalStatusresolved => closed
2011-11-04 06:29mtaalFixed in Version => 3.0MP5
2011-11-04 13:58hudsonbotCheckin
2011-11-04 13:58hudsonbotNote Added: 0042621
2011-11-04 13:58hudsonbotCheckin
2011-11-04 13:58hudsonbotNote Added: 0042622
2011-11-04 13:58hudsonbotCheckin
2011-11-04 13:58hudsonbotNote Added: 0042623

Notes
(0042468)
hgbot   
2011-11-02 18:12   
Repository: erp/devel/pi
Changeset: 235f0b65a05907e71a28e2d81c1bd00c90b849c0
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Nov 02 18:11:17 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/235f0b65a05907e71a28e2d81c1bd00c90b849c0 [^]

fixed bug 18957: non-madatory selector fields not loaded

  Non-mandatory selector fields are sometimes not loaded in form view

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0042474)
hgbot   
2011-11-03 09:47   
Repository: erp/devel/pi
Changeset: 98c34f99775f9c47840501015dd8c9bbc492e00c
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Nov 03 09:47:30 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/98c34f99775f9c47840501015dd8c9bbc492e00c [^]

fixed bug 18957: Different implementation

  Do not use setValue, but setElementValue which applies only to fields with mapValue

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0042475)
alostale   
2011-11-03 09:52   
It seems it is not caused by non-mandatory selectors, but by having more than one selector of the same type in the same tab.

select w.name, t.name, f.name
from ad_column c, ad_field f, ad_tab t, ad_window w, ad_menu m
where ad_reference_id = '30'
and ad_reference_value_id is not null
and c.isactive ='Y'
and f.isactive='Y'
and f.isdisplayed='Y'
and t.isactive='Y'
and w.isactive='Y'
and m.isactive='Y'
and c.ad_column_id = f.ad_column_id
and f.ad_tab_id = t.ad_tab_id
and w.ad_window_id = t.ad_window_id
and m.ad_window_id = w.ad_window_id
and exists (select 1 from obuisel_selector s where s.ad_reference_id = c.ad_reference_value_id)
and exists (select 1 from ad_column c2, ad_field f2
             where c2.ad_table_id = c.ad_table_id
             and c.ad_column_id != c2.ad_column_id
             and c.ad_reference_value_id = c2.ad_reference_value_id
             and f2.ad_column_id = c2.ad_column_id
             and c2.isactive='Y'
             and f2.ad_tab_id = f.ad_tab_id
             and f2.isactive='Y'
             and f2.isdisplayed='Y')
order by 1,2,3;
(0042476)
hgbot   
2011-11-03 10:51   
Repository: erp/devel/pi
Changeset: a5c64b5081f52c218d53619eb96f39343494b23c
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Nov 03 10:51:13 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a5c64b5081f52c218d53619eb96f39343494b23c [^]

fixed bug 18957: forcing setElementValue just in case of no change

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0042517)
mtaal   
2011-11-04 06:29   
Works
(0042621)
hudsonbot   
2011-11-04 13:58   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/d10da320df2a [^]

Maturity status: Test
(0042622)
hudsonbot   
2011-11-04 13:58   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/d10da320df2a [^]

Maturity status: Test
(0042623)
hudsonbot   
2011-11-04 13:58   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/d10da320df2a [^]

Maturity status: Test