biz9-logic 4.8.71 → 4.8.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='5.5.1'
1
+ VERSION='5.5.3'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -453,12 +453,13 @@ class Field_Logic {
453
453
  item = Field_Logic.get_value_list(item,option);
454
454
  }
455
455
  if(option.fields){
456
- for(let a = 0; a<option.fields.length;a++){
457
- if(!option.get_blank == true){
458
- item[option.fields[a]] = Str.get_title(option.fields[a]) +"_" + Number.get_id();
456
+ let field_list = String(option.fields).split(',');
457
+ Log.w('field_list',field_list);
458
+ for(let a = 0; a<field_list.length;a++){
459
+ if(option.get_blank == true){
460
+ item[field_list[a]] = "";
459
461
  }else{
460
- item[option.fields[a]] = "";
461
-
462
+ item[Str.get_title_url(field_list[a])] = Str.get_title(field_list[a]) +"_" + Number.get_id();
462
463
  }
463
464
  }
464
465
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.71",
3
+ "version": "4.8.73",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -47,10 +47,10 @@ describe("connect", () => {
47
47
  },
48
48
 
49
49
  function(call) {
50
- console.log('STORAGE-START');
51
- console.log(Storage.get({},'apples'));
50
+ //console.log('STORAGE-START');
51
+ //console.log(Storage.get({},'apples'));
52
52
  //Log.w('storage-start',Storage.set(Number.get_id()));
53
- console.log('STORAGE-END');
53
+ //console.log('STORAGE-END');
54
54
  /* --PAGE--START */
55
55
  //let page = Page_Logic.get_test()
56
56
  //let page = Page_Logic.get_test("Page "+Number.get_id())
@@ -196,8 +196,9 @@ describe("connect", () => {
196
196
  //let product = Product_Logic.get_test({fields:["cool_beanj]})
197
197
  //Log.w("product",product);
198
198
  //let product_list = Product_Logic.get_test_list({product_count:10,get_blank:true});
199
+ let product_list = Product_Logic.get_test_list({product_count:2,get_blank:false,fields:'delivery_time,apple,basnnah'})
199
200
  //let product_list = Product_Logic.get_test_list();
200
- //Log.w('product_list',product_list);
201
+ Log.w('product_list',product_list);
201
202
  //let [category_list,product_list]=Product.get_test_list_by_category({category_count:5,product_count:9});
202
203
  //Log.w('category_list',category_list);
203
204