pari: trunk r1072 - /trunk/config/scripts/astman.js
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Sun Jun 10 00:00:53 MST 2007
Author: pari
Date: Sun Jun 10 02:00:53 2007
New Revision: 1072
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1072
Log:
Tilghman just pointed this - http://lists.digium.com/pipermail/asterisk-dev/2007-June/028035.html, this also exposed a bug in with 'delcat' action - will be reporting soon in the bug tracker
Modified:
trunk/config/scripts/astman.js
Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?view=diff&rev=1072&r1=1071&r2=1072
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Sun Jun 10 02:00:53 2007
@@ -288,10 +288,12 @@
g = t[r].indexOf(":") ;
catname = t[r].substr(g+1) ; // category
catname = catname.replace(/^\s*|\s*$/g,'') ; // trim
- if(!p){
- a[catname] = [];
- }else{
- a[catname] = {};
+ if(!a[catname]){ // contexts could be spread at different places in the config file
+ if(!p){
+ a[catname] = [];
+ }else{
+ a[catname] = {};
+ }
}
}else if ( h == "line" ){
j = t[r].indexOf(":") ;
More information about the asterisk-gui-commits
mailing list