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.
- package/biz9_config +2 -2
- package/index.js +6 -2
- package/package.json +1 -1
package/biz9_config
CHANGED
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 =
|
|
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
|
|
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 = [];
|