biz9-logic 4.9.104 → 4.9.105

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.6'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main'
package/index.js CHANGED
@@ -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.105",
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