Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0039218 | Openbravo ERP | A. Platform | public | 2018-09-03 18:47 | 2019-03-28 14:56 |
Reporter | vmromanos | ||||
Assigned To | jarmendariz | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | 3.0PR19Q2 | |||
Merge Request Status | |||||
Review Assigned To | AugustoMauch | ||||
OBNetwork customer | No | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0039218: Hidden value in grid not updating properly from null value when changed via Process | ||||
Description | Assume we have a table (T) with a record of which a field (T.col1) is set to null. T.col1 value is not shown in the GridView and the Window has a process definition that changes its value. First time we execute the process, we can see in the parameters that T.col1 value is passed as empty string instead of null. Next time the process is executed for the same record, T.col1 value in parameters is still "" instead of the actual value set in the previous process execution. | ||||
Steps To Reproduce | * Apply the patch file attached to this issue. (39218-scenario.patch) * Recompile using ant smartbuild -Dlocal=no and start Tomcat * Go to Product Window * Filter the grid to select "Orange Juice bio" * Press the "Set Attribute Set Instance" process button in the Toolbar. * In the popup that appears press Done. At this point notice that the console has a log line that shows the following: 2018-12-24 13:29:24,341 [http-bio-8080-exec-14] INFO org.openbravo.materialmgmt.actionhandler.SetAttrSetInstance - Parameter inpmAttributesetinstanceId. Value= * Press again the "Set Attribute Set Instance" button and then "Done" in the popup. Another log line appears showing again that inpmAttributesetinstanceId is empty, but in this case there should be an UUID value: 2018-12-24 13:29:38,250 [http-bio-8080-exec-7] INFO org.openbravo.materialmgmt.actionhandler.SetAttrSetInstance - Parameter inpmAttributesetinstanceId. Value= * Finally close the Product Window and open it again. * Filter the grid to select "Orange Juice bio" * Press the "Set Attribute Set Instance" process button and press "Done" in the popup. This time the correct UUID appears in the log: 2018-12-24 13:30:04,053 [http-bio-8080-exec-2] INFO org.openbravo.materialmgmt.actionhandler.SetAttrSetInstance - Parameter inpmAttributesetinstanceId. Value= 0BD1F69F312D4831A5B36EA184B420DF | ||||
Proposed Solution | The FIC returns some fields as empty string when they're actually null. This situation is properly handled by AdvancedQueryBuilder. But this value is stored on client side as the record's edit values and this is not cleared when returning from a process, so this takes precedence over the actual value. This causes the value not to be sent updated the second time the process is called. Just clear the selected records edit data when returning from a process. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=12452&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=12453&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2018-09-03 18:47 | vmromanos | New Issue | |||
2018-09-03 18:47 | vmromanos | Assigned To | => platform | ||
2018-09-03 18:47 | vmromanos | OBNetwork customer | => No | ||
2018-09-03 18:47 | vmromanos | Modules | => Core | ||
2018-09-03 18:47 | vmromanos | Triggers an Emergency Pack | => No | ||
2018-09-05 09:57 | vmromanos | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=17601#r17601 | ||
2018-11-16 09:22 | jarmendariz | Assigned To | platform => jarmendariz | ||
2018-11-16 10:08 | jarmendariz | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=17926#r17926 | ||
2018-12-19 16:57 | jarmendariz | Status | new => scheduled | ||
2018-12-24 13:38 | jarmendariz | File Added: 39218-scenario.patch | |||
2018-12-24 14:10 | jarmendariz | Summary | Null and empty string ("") management in tab's HQL Where clause when @Entity.property@ is involved => Hidden value in grid not updating properly from null value when changed via Process | ||
2018-12-24 14:10 | jarmendariz | Description Updated | bug_revision_view_page.php?rev_id=18072#r18072 | ||
2018-12-24 14:19 | jarmendariz | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=18073#r18073 | ||
2018-12-24 16:54 | jarmendariz | Proposed Solution updated | |||
2018-12-24 17:13 | jarmendariz | File Added: 39218-fix.patch | |||
2019-03-01 10:09 | hgbot | Checkin | |||
2019-03-01 10:09 | hgbot | Note Added: 0110148 | |||
2019-03-01 10:09 | hgbot | Status | scheduled => resolved | ||
2019-03-01 10:09 | hgbot | Resolution | open => fixed | ||
2019-03-01 10:09 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/b76233d16c1d2fbc333d88f794e8984d2acf8c88 [^] | ||
2019-03-01 10:09 | jarmendariz | Review Assigned To | => AugustoMauch | ||
2019-03-01 10:55 | hgbot | Checkin | |||
2019-03-01 10:55 | hgbot | Note Added: 0110149 | |||
2019-03-05 18:24 | AugustoMauch | Note Added: 0110243 | |||
2019-03-05 18:24 | AugustoMauch | Status | resolved => closed | ||
2019-03-05 18:24 | AugustoMauch | Fixed in Version | => 3.0PR19Q2 | ||
2019-03-28 14:56 | hudsonbot | Checkin | |||
2019-03-28 14:56 | hudsonbot | Note Added: 0110840 | |||
2019-03-28 14:56 | hudsonbot | Checkin | |||
2019-03-28 14:56 | hudsonbot | Note Added: 0110841 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|