luci-mod-network: fix invalid variable access when creating interfaces
[project/luci.git] / modules / luci-mod-network / htdocs / luci-static / resources / view / network / interfaces.js
index 0157d2b1269c8189469efbbb792566d848294314..19021c4ef1dfcb2a921a09d854643dbbcf3c9cc8 100644 (file)
@@ -825,7 +825,7 @@ return view.extend({
                                                                        }
 
                                                                        return m.save(function() {
-                                                                               uci.add('network', 'interface', nameval);
+                                                                               var section_id = uci.add('network', 'interface', nameval);
 
                                                                                protoclass.set('proto', protoval);