Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0031344 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2015-11-03 17:40 | 2015-11-23 21:17 | |||
Reporter | NaroaIriarte | View Status | public | |||||
Assigned To | NaroaIriarte | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0PR16Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 95838980b800 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | caristu | |||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | Coding ( Testing ) | |||||||
Regression date | 2015-10-27 | |||||||
Regression introduced in release | ||||||||
Regression introduced by commit | http://code.openbravo.com/erp/devel/pi/rev/cbf2d65774b8afda5265c76b78642271a0a7246a [^] [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0031344: The email option does not work if the Attach by default preference is set. | |||||||
Description | It is not possible to send a document by email by clicking the email button if the "Attach by Default" preference is set as Y or as N. | |||||||
Steps To Reproduce | -Go to Preference window. -Create a new preference which property is "attach by default". -Set the value as N. -close the window and open the "Sales Order" window. -Select a record and click on the email button. -Realize that nothing happens. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0081458) caristu (viewer) 2015-11-03 18:41 edited on: 2015-11-03 18:41 |
The problem is caused because the PrinterReports servlet is used for both the email and print pop-up. For this reason, the Attach by Default preference is preventing the appearance of the email pop-up. To solve this problem, a good idea could be to send a parameter in the client (OB.ToolbarUtils.print) method that will allow PrinterReports to indentify the correct flow. |
(0081522) hgbot (developer) 2015-11-05 13:56 |
Repository: erp/devel/pi Changeset: 95838980b8006505d39b25031a7a8a96f7e799f0 Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com> Date: Thu Nov 05 11:28:55 2015 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/95838980b8006505d39b25031a7a8a96f7e799f0 [^] Fixed issue 31344: The email option does not work wih attach by default. When the attach by default preference was set, the email option was not working. To fix this some classes have bennchanged: OBViewTab.java to have a new parameter "emailButton" or "printButton" in the view. In the ob-toolbar.js, in the OB.ToolbarUtils.print function now takes the new parameter and puts it in the popupParams. Thanks to that in the PrinterReports.java it is possible to catch that parameter from the vars variable and if it is "emailButton" the logic which was failing at first is avoided. That logic is only for the direct print and the attach by default and this has no sense in the case of an email. --- M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewTab.java M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js M src/org/openbravo/erpCommon/businessUtility/PrinterReports.java --- |
(0081553) NaroaIriarte (viewer) 2015-11-06 11:02 |
A test in testlink has been added. https://testlink.openbravo.com/testlink/linkto.php?tprojectPrefix=Communit&item=testcase&id=Communit-9906 [^] |
(0081616) caristu (viewer) 2015-11-09 11:26 edited on: 2015-11-09 11:27 |
Code review + tested OK. Tested with all the combinations of the preferences that could affect: 1- Direct Print (not defined), Attach by Default (not defined) 2- Direct Print (Y), Attach by Default (not defined) 3- Direct Print (N), Attach by Default (not defined) 4- Direct Print (Y), Attach by Default (Y) 5- Direct Print (Y), Attach by Default (N) 6- Direct Print (not defined), Attach by Default (Y) 7- Direct Print (not defined), Attach by Default (N) |
(0082180) hudsonbot (viewer) 2015-11-23 21:17 |
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/7b56bebaaa88 [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2015-11-03 17:40 | NaroaIriarte | New Issue | |
2015-11-03 17:40 | NaroaIriarte | Assigned To | => NaroaIriarte |
2015-11-03 17:40 | NaroaIriarte | OBNetwork customer | => No |
2015-11-03 17:40 | NaroaIriarte | Modules | => Core |
2015-11-03 17:40 | NaroaIriarte | Regression level | => Coding ( Testing ) |
2015-11-03 17:40 | NaroaIriarte | Regression date | => 2015-10-27 |
2015-11-03 17:40 | NaroaIriarte | Regression introduced by commit | => http://code.openbravo.com/erp/devel/pi/rev/cbf2d65774b8afda5265c76b78642271a0a7246a [^] [^] |
2015-11-03 17:40 | NaroaIriarte | Triggers an Emergency Pack | => No |
2015-11-03 17:41 | NaroaIriarte | Relationship added | caused by 0030783 |
2015-11-03 17:41 | NaroaIriarte | Relationship added | related to 0031317 |
2015-11-03 18:41 | caristu | Note Added: 0081458 | |
2015-11-03 18:41 | caristu | Note Edited: 0081458 | View Revisions |
2015-11-03 18:41 | caristu | Note Edited: 0081458 | View Revisions |
2015-11-04 09:09 | alostale | Status | new => scheduled |
2015-11-05 13:46 | NaroaIriarte | Review Assigned To | => alostale |
2015-11-05 13:46 | NaroaIriarte | Issue Monitored: NaroaIriarte | |
2015-11-05 13:46 | NaroaIriarte | Issue Monitored: alostale | |
2015-11-05 13:56 | hgbot | Checkin | |
2015-11-05 13:56 | hgbot | Note Added: 0081522 | |
2015-11-05 13:56 | hgbot | Status | scheduled => resolved |
2015-11-05 13:56 | hgbot | Resolution | open => fixed |
2015-11-05 13:56 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/95838980b8006505d39b25031a7a8a96f7e799f0 [^] |
2015-11-06 11:02 | NaroaIriarte | Note Added: 0081553 | |
2015-11-09 09:52 | alostale | Review Assigned To | alostale => caristu |
2015-11-09 11:26 | caristu | Note Added: 0081616 | |
2015-11-09 11:26 | caristu | Status | resolved => closed |
2015-11-09 11:26 | caristu | Fixed in Version | => 3.0PR16Q1 |
2015-11-09 11:27 | caristu | Note Edited: 0081616 | View Revisions |
2015-11-23 21:17 | hudsonbot | Checkin | |
2015-11-23 21:17 | hudsonbot | Note Added: 0082180 |
Copyright © 2000 - 2009 MantisBT Group |