rbrindley: branch 2.0 r4832 - /branches/2.0/config/js/trunks_analog.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Jun 3 15:30:53 CDT 2009


Author: rbrindley
Date: Wed Jun  3 15:30:50 2009
New Revision: 4832

URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4832
Log:

- fixed an issue where having no trunk's callerid would not set the default
  value as 'asreceived'


Modified:
    branches/2.0/config/js/trunks_analog.js

Modified: branches/2.0/config/js/trunks_analog.js
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/js/trunks_analog.js?view=diff&rev=4832&r1=4831&r2=4832
==============================================================================
--- branches/2.0/config/js/trunks_analog.js (original)
+++ branches/2.0/config/js/trunks_analog.js Wed Jun  3 15:30:50 2009
@@ -88,7 +88,7 @@
 		ASTGUI.updateFieldToValue( _$(fld) ,  fld_value );
 	} );
 
-	if (parent.sessionData.pbxinfo['trunks']['analog'][EDIT_TRUNK]['callerid'] != 'asreceived') {
+	if (parent.sessionData.pbxinfo['trunks']['analog'][EDIT_TURNK]['callerid'] && parent.sessionData.pbxinfo['trunks']['analog'][EDIT_TRUNK]['callerid'] != 'asreceived') {
 		ASTGUI.updateFieldToValue(_$('dummy_customCid'), parent.sessionData.pbxinfo.trunks.analog[EDIT_TRUNK].callerid);
 		ASTGUI.updateFieldToValue( _$('dummy_callerid'), 'custom');
 	}




More information about the asterisk-gui-commits mailing list