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

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu Feb 8 12:56:04 MST 2007


Author: pari
Date: Thu Feb  8 13:56:04 2007
New Revision: 327

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=327
Log:
BugFix: Getting a 'this analog phone has been already assigned to another user extension' message when it is not

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=327&r1=326&r2=327
==============================================================================
--- trunk/config/users.html (original)
+++ trunk/config/users.html Thu Feb  8 13:56:04 2007
@@ -139,7 +139,7 @@
 		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].fieldbyname['zapchan'] && $('devices').stored_config.categories[i].fieldbyname.zapchan.length )
+						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)){



More information about the asterisk-gui-commits mailing list