Browse Source

Merge branch 'master' of github.com:thingsboard/thingsboard

pull/4985/head
Andrii Shvaika 5 years ago
parent
commit
940c81b095
  1. 2
      application/src/main/java/org/thingsboard/server/actors/device/DeviceActorMessageProcessor.java
  2. 4
      ui-ngx/src/app/modules/home/components/widget/lib/multiple-input-widget.component.ts

2
application/src/main/java/org/thingsboard/server/actors/device/DeviceActorMessageProcessor.java

@ -518,7 +518,7 @@ class DeviceActorMessageProcessor extends AbstractContextAwareMsgProcessor {
String payload = hasError ? responseMsg.getError() : responseMsg.getPayload(); String payload = hasError ? responseMsg.getError() : responseMsg.getPayload();
systemContext.getTbCoreDeviceRpcService().processRpcResponseFromDeviceActor( systemContext.getTbCoreDeviceRpcService().processRpcResponseFromDeviceActor(
new FromDeviceRpcResponse(requestMd.getMsg().getMsg().getId(), new FromDeviceRpcResponse(requestMd.getMsg().getMsg().getId(),
payload, hasError ? RpcError.INTERNAL : null)); payload, null));
if (requestMd.getMsg().getMsg().isPersisted()) { if (requestMd.getMsg().getMsg().isPersisted()) {
RpcStatus status = hasError ? RpcStatus.FAILED : RpcStatus.SUCCESSFUL; RpcStatus status = hasError ? RpcStatus.FAILED : RpcStatus.SUCCESSFUL;
JsonNode response; JsonNode response;

4
ui-ngx/src/app/modules/home/components/widget/lib/multiple-input-widget.component.ts

@ -495,8 +495,8 @@ export class MultipleInputWidgetComponent extends PageComponent implements OnIni
const serverAttributes: AttributeData[] = []; const serverAttributes: AttributeData[] = [];
const sharedAttributes: AttributeData[] = []; const sharedAttributes: AttributeData[] = [];
const telemetry: AttributeData[] = []; const telemetry: AttributeData[] = [];
for (const key of this.visibleKeys(toSave)) { for (const key of toSave.keys) {
const currentValue = this.multipleInputFormGroup.get(key.formId).value; const currentValue = key.settings.dataKeyHidden ? key.value : this.multipleInputFormGroup.get(key.formId).value;
if (!isEqual(currentValue, key.value) || this.settings.updateAllValues) { if (!isEqual(currentValue, key.value) || this.settings.updateAllValues) {
const attribute: AttributeData = { const attribute: AttributeData = {
key: key.name, key: key.name,

Loading…
Cancel
Save