pari: trunk r340 - /trunk/config/users.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Feb 14 17:55:41 MST 2007


Author: pari
Date: Wed Feb 14 18:55:40 2007
New Revision: 340

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=340
Log:
bugfix: error while editing a user after cancelling a New entry

Modified:
    trunk/config/users.html

Modified: trunk/config/users.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/users.html?view=diff&rev=340&r1=339&r2=340
==============================================================================
--- trunk/config/users.html (original)
+++ trunk/config/users.html Wed Feb 14 18:55:40 2007
@@ -139,8 +139,10 @@
 		if(allow_aliasextns == "no"){	// check whether the selected analog line is assigned to another user extension
 				var tmp_usedanaloglines = [] ;
 				for ( var i=1; i < $('devices').stored_config.categories.length ; i++){
+						if ( $('devices').stored_config.categories[i] != null ){
 						if ( $('devices').stored_config.categories[i].fieldbyname['zapchan'] && $('devices').stored_config.categories[i].fieldbyname.zapchan.length && $('devices').stored_config.categories[i].name != $('devices').value )
 							tmp_usedanaloglines.push($('devices').stored_config.categories[i].fieldbyname.zapchan);
+						}
 				}
 				if ( InArray(tmp_usedanaloglines,$('zapchan').value)){
 					alert("This Analog Phone has already been assigned to another user extension.\n Please select a different Phone");



More information about the asterisk-gui-commits mailing list