biz9-logic 4.8.138 → 4.8.140
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 +1 -1
- package/index.js +4 -7
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -1112,10 +1112,7 @@ class Favorite_Logic {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
1114
1114
|
class Review_Logic {
|
|
1115
|
-
static get_new = (parent_data_type,parent_id,user,
|
|
1116
|
-
if(!review){
|
|
1117
|
-
review = {};
|
|
1118
|
-
}
|
|
1115
|
+
static get_new = (parent_data_type,parent_id,user,title,comment,rating) =>{
|
|
1119
1116
|
return DataItem.get_new(DataType.REVIEW,0,{
|
|
1120
1117
|
parent_data_type:parent_data_type,
|
|
1121
1118
|
parent_id:parent_id,
|
|
@@ -1126,9 +1123,9 @@ class Review_Logic {
|
|
|
1126
1123
|
last_name:user.last_name ? user.last_name : "",
|
|
1127
1124
|
location:user.country ? User_Logic.get_user_country_state_city(user) : "",
|
|
1128
1125
|
|
|
1129
|
-
title:
|
|
1130
|
-
comment:
|
|
1131
|
-
rating:
|
|
1126
|
+
title:title ? title : "",
|
|
1127
|
+
comment:comment ? comment : "",
|
|
1128
|
+
rating:rating ? rating : ""
|
|
1132
1129
|
});
|
|
1133
1130
|
}
|
|
1134
1131
|
static get_search_filter = (parent_data_type,parent_id) =>{
|