Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0002865Openbravo ERPB. User interfacepublic2008-04-15 12:542008-06-12 09:43
plujan 
alostale 
normalminoralways
closedfixed 
5
 
2.40alpha-r2 
No
Core
No
0002865: QA-AUDIT Link Created by and Updated by do not work properly
Description:
The new Auditory fields "Created by" and "Updated by" do not link to correct tab. They try to open the "Contact" tab of Business Partner window instead of "User" tab of User window.

Steps:
1. Login with an user that is not a contact of any Business Partner
2. Create some data (example: a Purchase Order) and save.
3. Review the Auditory fields and follow the "Created by" link. An error appears "Parent record not found".
4. Login with an user that is a contact of certain BP
5. Create data and review Auditory.
6. Note that it is possible to navigate the link, but the Contact tab of Business Partner is shown instead of User tab of User window.
No tags attached.
Issue History

Notes
(0006454)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:43)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1942877 [^]
(0003535)
alostale   
2008-05-09 15:56   
(edited on: 2008-06-12 09:25)
Logged In: YES
user_id=1500722
Originator: NO

The problem was that the link was trying to navigate to Business Partner/Contact. This happened because the window in ad_user table was set as business partner (why?).

I've changed it to user. If this causes any problem reference link could be treated as an special case modifying ReferenceLink.java (ln72):
   if (strTableRealReference.equals("114")) { //AD_User
          strWindowId = "108";
        } else {
          ReferencedLinkData[] data = ReferencedLinkData.selectWindows(this, strTableRealReference);
          if (data==null || data.length==0) throw new ServletException("Window not found");
  
          strWindowId = data[0].adWindowId;
          if (!isSOTrx && !data[0].poWindowId.equals("")) strWindowId = data[0].poWindowId;
        }

r4098.