[Vtigercrm-commits] [vtiger development] #7116: Bug with select related record popup
vtiger development
vtiger-tickets at trac.vtiger.com
Fri Jul 29 19:12:39 PDT 2011
#7116: Bug with select related record popup
------------------------+---------------------------------------------------
Reporter: pinaki | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: Unassigned
Component: vtigercrm | Version: 5.2.1
Keywords: |
------------------------+---------------------------------------------------
This issue happens with select related record popups (for example with
select account popup in Contacts). To reproduce the issue -
1. Go to editview of trouble tickets (create or edit an existing
record)
2. Click on quickcreate of Contacts when in the editview (or
createview).
3. Try selecting a account for the quickcreate
4. The popup comes up fine but when you select an account, nothing
happens.
The problem here is the function vtlib_setvalue_from_popup() in
include/js/vtlib.js. This function is called to set the related field
value. It first checks if the page is editview;
if yes, then it tries to put the field in there; if no, it checks if the
page is quickcreate
and tries to put the field in there. So if you are doing a quickcreate in
editview, it will always meet the first condition and the selection will
never appear correctly. The error in logic here is that quickcreate should
take precedence over other views since it will always be the first thing
to be in focus. Changing the order of the if blocks in the said function
will fix the bug.
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7116>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list