Permalink
Browse files

slave fix

  • Loading branch information...
1 parent 6f72f80 commit cb5040c8bf1b4acadf0d0399ff0de78f8d970761 yellow committed Dec 3, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −0 db_edit.jxp
  2. +0 −2 pieces/itemList.js
View
@@ -30,6 +30,9 @@ if ( isString( mydb.slaves ) ){
}
if ( request.action == "save" ){
+
+ if ( ! request.slaves )
+ mydb.slaves = null;
if ( ! request.name ){
myerror( "need a db name" );
View
@@ -16,8 +16,6 @@ var foo = coll.findOne();
if ( foo ){
if ( foo.name )
fields.add( "name" );
- if ( foo.machine )
- fields.add( "machine" );
}
if ( extraFields ){

0 comments on commit cb5040c

Please sign in to comment.