Browse Source

Refactored constructor to work without array as default parameter.

mingodad 13 years ago
parent
commit
ac91d1d2b8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ourbiz/ourbiz.nut

+ 2 - 1
ourbiz/ourbiz.nut

@@ -164,7 +164,8 @@ class DB_Manager {
 	has_mdate = null;
 	has_version = null;
 	
-	constructor(ptable_name, peditable_fields = ["is_active", "code", "description"]){
+	constructor(ptable_name, peditable_fields = null){
+		if(!peditable_fields) peditable_fields =  ["is_active", "code", "description"];
 		table_name = ptable_name;
 		editable_fields = peditable_fields;
 		has_mdate = true;