Page 1 of 1

undefined in callback list

PostPosted: Mon Apr 14, 2008 10:35 am
by heinz
Hi,

once in a while our agents have entries in their callback list where every field except the comments-field says "undefined". Because of the comments-field I could find out the lead_id and check the entries in vicidial_callbacks, vicidial_list and vicidial_log. Everything looks fine, no unusual data in these tables.

Does anyone have a clue what the problem could be?

Thanks,
heinz

PostPosted: Mon Apr 14, 2008 12:33 pm
by mflorell
astGUIclient version?

browser version?

PostPosted: Tue Apr 15, 2008 3:08 am
by heinz
astguiclient 2.0.3
Firefox 2.0.0.13

PostPosted: Tue Apr 15, 2008 8:34 am
by mflorell
There were a few fixes to Callbacks made in the 2.0.4 release. Please try upgrading to 2.0.4 or 2.0.4.1rc1

PostPosted: Thu Jan 22, 2009 11:07 am
by heinz
I upgraded to 2.0.4 and still ran into this problem.
Now I might found out what is going on (but I am not sure):

The agents copy and paste the comment from the lead into the comments-field of the callbacks. That puts some new lines "\n" into the callbacks comments-field. In vdc_db_query.php around line 1734
Code: Select all
$CBcomments =      trim("$row[3]");

removes only "\n" at the beginning and end of the string.
In vicidial.php around line 3045
Code: Select all
var all_CBs_array=all_CBs.split("\n");

splits the array with "\n" as delimiter. That's how the undefined rows get into the callback list.

Has anyone an idea how to solve this issue?

Thanks,
heinz

PostPosted: Fri Jan 23, 2009 6:27 pm
by mflorell
Newlines are actually converted to an ASCII string for single-line storage and then they are re-formed when they go back to the agent screen. We do multi-line comments all the time without any issues.