pari: trunk r686 - /trunk/config/setup/7.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue Apr 17 15:24:11 MST 2007


Author: pari
Date: Tue Apr 17 17:24:10 2007
New Revision: 686

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=686
Log:
bug Fix: Gui saying this analog phone is already assigned to another user extension while that is not the case

Modified:
    trunk/config/setup/7.html

Modified: trunk/config/setup/7.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/7.html?view=diff&rev=686&r1=685&r2=686
==============================================================================
--- trunk/config/setup/7.html (original)
+++ trunk/config/setup/7.html Tue Apr 17 17:24:10 2007
@@ -119,8 +119,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].fieldbyname['zapchan'] && _$('devices').stored_config.categories[i].fieldbyname.zapchan.length )
+			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");
@@ -431,4 +433,4 @@
 <div id="bg_transparent" STYLE="display:none; position: absolute; left: 0; top: 0; width:100%; height:100%;  background-color:#FFFFFF; filter:alpha(opacity=50); -moz-opacity:.50;opacity:.50; border-width: 0px; z-index:4">
 </div>
 </BODY>
-</HTML>
+</HTML>



More information about the asterisk-gui-commits mailing list