Openbravo Issue Tracking System - Openbravo ERP | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0021922 | Openbravo ERP | A. Platform | public | 2012-10-11 18:51 | 2012-10-23 14:40 |
| Reporter | caristu | ||||
| Assigned To | shankarb | ||||
| Priority | urgent | Severity | major | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Platform | OS | 5 | OS Version | ||
| Product Version | |||||
| Target Version | 3.0MP17 | Fixed in Version | pi | ||
| Merge Request Status | |||||
| Review Assigned To | dbaz | ||||
| OBNetwork customer | OBPS | ||||
| Web browser | |||||
| Modules | Core | ||||
| Support ticket | 17378 | ||||
| Regression level | |||||
| Regression date | |||||
| Regression introduced in release | |||||
| Regression introduced by commit | |||||
| Triggers an Emergency Pack | No | ||||
| Summary | 0021922: Synchronize Terminology does not work properly with MERGE modules | ||||
| Description | Synchronize Terminology does not work properly with MERGE modules There is a MAX in this line of the PL AD_SYNCHRONIZE: https://code.openbravo.com/erp/devel/pi/file/80586c65a422/src-db/database/model/functions/AD_SYNCHRONIZE.xml#l235 [^] So if you have more than one dbprefix in your module and you are trying to update the name of a column for a module that are not the MAX the processes fail trying to put a name like: EM_PREFIXOFTHEMAXMODULE_EM_YOURREAL_PREFIX_CoulumnNAme and this is not allowed by the trigger AD_COLUMN_TRG2 so the process fails. | ||||
| Steps To Reproduce | 1) Create a merged module with 2 different dbprefixes 2) Create two columns one of each module 3) Create two external columns, one of each module 4) Execute Synchronize Terminology | ||||
| Proposed Solution | Modify the query adding a restriction from: AND P.AD_MODULE_DBPREFIX_ID = (SELECT MAX(AD_MODULE_DBPREFIX_ID) FROM AD_MODULE_DBPREFIX P1 WHERE P1.AD_MODULE_ID = C.Ad_MODULE_ID)) to AND P.AD_MODULE_DBPREFIX_ID = (SELECT MAX(AD_MODULE_DBPREFIX_ID) FROM AD_MODULE_DBPREFIX P1 WHERE P1.AD_MODULE_ID = C.Ad_MODULE_ID ++ AND ((instr(upper(C.columnname), 'EM_'||upper(P1.name)||'_') = 1) ++ OR (MT.AD_MODULE_ID = C.AD_MODULE_ID)) )) Adding this restriction we ensure that in the 'EM case' the prefix is the right one OR in a 'normal column case' that the prefix belong to their module. | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-10-11 18:51 | caristu | New Issue | |||
| 2012-10-11 18:51 | caristu | Assigned To | => AugustoMauch | ||
| 2012-10-11 18:51 | caristu | Modules | => Core | ||
| 2012-10-11 18:51 | caristu | OBNetwork customer | => Yes | ||
| 2012-10-11 18:51 | caristu | Support ticket | => 17378 | ||
| 2012-10-11 18:51 | caristu | Resolution time | => 1352674800 | ||
| 2012-10-11 18:51 | caristu | Issue Monitored: networkb | |||
| 2012-10-16 15:57 | AugustoMauch | Assigned To | AugustoMauch => shankarb | ||
| 2012-10-17 14:55 | hgbot | Checkin | |||
| 2012-10-17 14:55 | hgbot | Note Added: 0053423 | |||
| 2012-10-17 14:55 | hgbot | Status | new => resolved | ||
| 2012-10-17 14:55 | hgbot | Resolution | open => fixed | ||
| 2012-10-17 14:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/f1f0bcb3e992a8b407760018a1f3c6611250461f [^] | ||
| 2012-10-17 14:55 | shankarb | Review Assigned To | => dbaz | ||
| 2012-10-17 14:55 | shankarb | Status | resolved => new | ||
| 2012-10-17 14:55 | shankarb | Resolution | fixed => open | ||
| 2012-10-17 14:55 | shankarb | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/f1f0bcb3e992a8b407760018a1f3c6611250461f [^] => | ||
| 2012-10-17 14:56 | shankarb | Issue Monitored: dbaz | |||
| 2012-10-17 14:56 | shankarb | Status | new => scheduled | ||
| 2012-10-17 14:56 | shankarb | fix_in_branch | => pi | ||
| 2012-10-17 14:57 | shankarb | Status | scheduled => resolved | ||
| 2012-10-17 14:57 | shankarb | Fixed in Version | => pi | ||
| 2012-10-17 14:57 | shankarb | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/f1f0bcb3e992a8b407760018a1f3c6611250461f [^] | ||
| 2012-10-17 14:57 | shankarb | Resolution | open => fixed | ||
| 2012-10-22 13:27 | hudsonbot | Checkin | |||
| 2012-10-22 13:27 | hudsonbot | Note Added: 0053513 | |||
| 2012-10-23 14:40 | dbaz | Note Added: 0053578 | |||
| 2012-10-23 14:40 | dbaz | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||