biz9-logic 4.9.104 → 4.9.106

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='9.7.5'
1
+ VERSION='9.7.7'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main'
package/index.js CHANGED
@@ -1109,7 +1109,7 @@ class Field_Logic {
1109
1109
  for(const prop in item){
1110
1110
  full_prop_str = String(prop + " "+full_prop_str);
1111
1111
  }
1112
- for(let b = 1; b < 30; b++){
1112
+ for(let b = 1; b < 75; b++){
1113
1113
  const exists = Str.check_if_str_exist(full_prop_str,"list_value_"+value_id+"_group_"+b);
1114
1114
  if(exists){
1115
1115
  if(b>max_group_id){
@@ -1126,14 +1126,14 @@ class Field_Logic {
1126
1126
  for(const prop in data){
1127
1127
  full_prop_str = String(prop + " "+full_prop_str);
1128
1128
  }
1129
- for(let a = 1; a < 30; a++){
1129
+ for(let a = 1; a < 75; a++){
1130
1130
  const exists = Str.check_if_str_exist(full_prop_str,"list_value_"+a);
1131
1131
  if(exists){
1132
1132
  if(a>max_value_id){
1133
1133
  max_value_id = a;
1134
1134
  }
1135
1135
  }
1136
- for(let b = 1; b < 30; b++){
1136
+ for(let b = 1; b < 20; b++){
1137
1137
  const exists = Str.check_if_str_exist(full_prop_str,"list_value_"+a+"_group_"+b);
1138
1138
  if(exists){
1139
1139
  if(b>max_group_id){
@@ -1190,7 +1190,11 @@ class Field_Logic {
1190
1190
  return 'image'+'_value_'+value_id;
1191
1191
  break;
1192
1192
  case Type.FIELD_VALUE_LIST:
1193
- return 'list'+'_value_'+value_id +'_group_' +group_id+"_"+Str.get_title_url(sub_field_title);
1193
+ if(!group_id){
1194
+ return 'list'+'_value_'+value_id;
1195
+ }else{
1196
+ return 'list'+'_value_'+value_id +'_group_' +group_id+"_"+Str.get_title_url(sub_field_title);
1197
+ }
1194
1198
  break;
1195
1199
  default:
1196
1200
  return 'text'+'_value_'+value_id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.9.104",
3
+ "version": "4.9.106",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const series = require('async-series');
2
- const {DataItem,DataType,Item_Logic,User_Logic,Page_Logic,Product_Logic,Type,Title,Stat_Logic,Service_Logic,Blog_Post_Logic,Event_Logic,Demo_Logic,Cart_Logic,Order_Logic,App_Logic} = require('./index');
2
+ const {DataItem,DataType,Item_Logic,User_Logic,Page_Logic,Product_Logic,Type,Title,Stat_Logic,Service_Logic,Blog_Post_Logic,Event_Logic,Demo_Logic,Cart_Logic,Order_Logic,App_Logic,Field_Logic} = require('./index');
3
3
  const {Log,Num,Str} = require('biz9-utility');
4
4
  const {Scriptz}= require('biz9-scriptz');
5
5
 
@@ -37,8 +37,9 @@ describe("connect", () => {
37
37
  let parent_id = 3334;
38
38
  let user_id = 0;
39
39
  let item_list = [];
40
- Log.w('Title',Type.get_title(Type.ORDER_STATUS_NEW));
41
- Log.w('Title 2',Type.get_title(Type.ORDER_STATUS_COMPLETE));
40
+ //Log.w('Title',Type.get_title(Type.ORDER_STATUS_NEW));
41
+ //Log.w('Title 2',Type.get_title(Type.ORDER_STATUS_COMPLETE));
42
+ Log.w('Title 2',Field_Logic.get_field_value_title(Type.FIELD_VALUE_LIST,3,4,'cool'));
42
43
  //Log.w('item_list',item_list);
43
44
  //Log.w('bind_obj_list',App_Logic.bind_item_parent_user_list(item_list));
44
45