biz9-logic 4.9.100 → 4.9.104

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.
Files changed (3) hide show
  1. package/biz9_config +2 -2
  2. package/index.js +6 -2
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,7 +1,7 @@
1
- VERSION='9.7.1'
1
+ VERSION='9.7.5'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
- BRANCH='9.6.8'
4
+ BRANCH='main'
5
5
  APP_ID='test_app_id';
6
6
  URL="http://localhost";
7
7
 
package/index.js CHANGED
@@ -1104,7 +1104,7 @@ class Event_Logic {
1104
1104
  }
1105
1105
  class Field_Logic {
1106
1106
  static get_item_max_group_id = (value_id,item) => {
1107
- let max_group_id = 1;
1107
+ let max_group_id = 0;
1108
1108
  let full_prop_str = "";
1109
1109
  for(const prop in item){
1110
1110
  full_prop_str = String(prop + " "+full_prop_str);
@@ -1175,7 +1175,7 @@ class Field_Logic {
1175
1175
  if(value_type!=Type.FIELD_VALUE_LIST){
1176
1176
  return !Str.check_is_null(item[Field_Logic.get_field_value_title(value_type,value_id)]) ? item[Field_Logic.get_field_value_title(value_type,value_id)] : ""
1177
1177
  }else{
1178
- return !Str.check_is_null(item[Field_Logic.get_field_value_title(value_type,value_id)]) ? item[Field_Logic.get_field_value_title(value_type,value_id)] : []
1178
+ return item[Field_Logic.get_field_value_list_title(value_id)] ? item[Field_Logic.get_field_value_list_title(value_id)] : [];
1179
1179
  }
1180
1180
  };
1181
1181
  static get_field_value_title = (value_type,value_id,group_id,sub_field_title) =>{
@@ -1250,6 +1250,10 @@ class Field_Logic {
1250
1250
  }
1251
1251
  return item;
1252
1252
  }
1253
+ //here
1254
+ static get_field_value_list_title(value_id){
1255
+ return 'list_value_'+value_id;
1256
+ }
1253
1257
  static get_value_list_group(item,value_id,group_id){
1254
1258
  let full_str = 'list_value_'+value_id+"_group_"+group_id;
1255
1259
  let new_list = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.9.100",
3
+ "version": "4.9.104",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"