@xuda.io/runtime-bundle 1.0.672 → 1.0.673
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.
|
@@ -32076,7 +32076,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32076
32076
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_dsP];
|
|
32077
32077
|
|
|
32078
32078
|
// update array for checkbox that not in xu-for
|
|
32079
|
-
if (field_prop.props.fieldType === 'array' &&
|
|
32079
|
+
if (field_prop.props.fieldType === 'array' && ($elm.attr('type') === 'checkbox' || $elm.attr('type') === 'radio') && val_is_reference_field) {
|
|
32080
32080
|
let arr_value_before_cast = _.clone((await func.datasource.get_value(SESSION_ID, bind_field_id, _dsP, _ds.currentRecordId)).ret.value);
|
|
32081
32081
|
let value_from_getter = bind.getter($elm[0]);
|
|
32082
32082
|
let value;
|
|
@@ -32163,13 +32163,21 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32163
32163
|
const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
32164
32164
|
value = _ds.data_feed.rows?.[row_idx]?.[val.value];
|
|
32165
32165
|
}
|
|
32166
|
-
if (field_prop.props.fieldType === 'array' &&
|
|
32166
|
+
if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'checkbox' && $elm.attr('value')) {
|
|
32167
32167
|
if (value.includes($elm.attr('value'))) {
|
|
32168
32168
|
value = true;
|
|
32169
32169
|
} else {
|
|
32170
32170
|
value = false;
|
|
32171
32171
|
}
|
|
32172
32172
|
}
|
|
32173
|
+
|
|
32174
|
+
if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'radio' && $elm.attr('value')) {
|
|
32175
|
+
if (value.includes($elm.attr('value'))) {
|
|
32176
|
+
value = $elm.attr('value');
|
|
32177
|
+
} else {
|
|
32178
|
+
value = false;
|
|
32179
|
+
}
|
|
32180
|
+
}
|
|
32173
32181
|
} else {
|
|
32174
32182
|
value = val.value;
|
|
32175
32183
|
}
|