Merge branch 'master' of github.com:thingsboard/thingsboard into feature/external-js-eval

This commit is contained in:
Andrew Shvayka 2018-09-26 17:22:02 +03:00
commit bd1ef13a5d
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ public class AlarmController extends BaseController {
Alarm savedAlarm = checkNotNull(alarmService.createOrUpdateAlarm(alarm)); Alarm savedAlarm = checkNotNull(alarmService.createOrUpdateAlarm(alarm));
logEntityAction(savedAlarm.getId(), savedAlarm, logEntityAction(savedAlarm.getId(), savedAlarm,
getCurrentUser().getCustomerId(), getCurrentUser().getCustomerId(),
savedAlarm.getId() == null ? ActionType.ADDED : ActionType.UPDATED, null); alarm.getId() == null ? ActionType.ADDED : ActionType.UPDATED, null);
return savedAlarm; return savedAlarm;
} catch (Exception e) { } catch (Exception e) {
logEntityAction(emptyId(EntityType.ALARM), alarm, logEntityAction(emptyId(EntityType.ALARM), alarm,

View File

@ -209,7 +209,7 @@ export default class CanvasDigitalGauge extends canvasGauges.BaseGauge {
this.elementValueClone.renderedValue = this._value; this.elementValueClone.renderedValue = this._value;
} }
if (angular.isUndefined(this.elementValueClone.renderedValue)) { if (angular.isUndefined(this.elementValueClone.renderedValue)) {
this.elementValueClone.renderedValue = options.minValue; this.elementValueClone.renderedValue = this.value;
} }
let context = this.contextValueClone; let context = this.contextValueClone;
// clear the cache // clear the cache