Although I spout the benefits of virtualisation often, it has this evening lead me in to trouble. A bug has been introduced in to a working copy of a setup and I cannot understand how something that was working has managed to become broken, or even when it has become broken.
It’s in the pERP sales order screen when adding a line item to a new order, the AJAX select box shows the results when searching for a stock code, but doesn’t allow me to select a line. When I click on a result, the result box simply disappears, and the line isn’t pre-filled.
From preliminary investigation I believe that the AJAX search widget javascript file has been replaced with an older version that didn’t support multiple keys being returned. In the etemplate, the widget is requesting the ID’s stock_id;price_list_id from perp_orders.bo_perp_price.get_merged_price_list. If I change it to request just one of the ID’s, it works fine. The javascript process works fine and the line is pre-filled (although with a missing field).
When using the latest /etemplate/inc/class.ajax_select_widget.inc.php from the trunk it does work when requesting both ID’s. When using the version in my VM as it stands it doesn’t work when requesting both ID’s.
The possibilities are that I have inadvertently replaced this javascript file with an old version which doesn’t work with multiple IDs; or there is some other bug or misconfiguration going on here. At what point was the AJAX selection widget modified to allow multiple ID’s to be returned? This may help me identify if I have copied any old files in to my setup by mistake.
Alternatively do you have any other theories on why the add line AJAX widget isn’t allowing me to choose a stock item which is in a valid price list for the client?
I have compared my perp_orders.sales_order_edit etemplate with the version on the pERP demo site and it’s identical. The only thing that seems to have changed is the javascript file version seems out of step with the rest of the eGW API 1.7.003 or I have a simple config error.
Kindest thanks in anticipation of suggestions,
Paul
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers