Skip to content

Commit

Permalink
bugfix allowFuture
Browse files Browse the repository at this point in the history
  • Loading branch information
KiboOst committed Nov 2, 2022
1 parent fb6d0ae commit a3fc9f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/ajax/cmd.ajax.php
Expand Up @@ -372,7 +372,7 @@
}
}

if (init('allowFuture', 0) == 1 && config::byKey('history::allowFuture', 'core', 0) == '0' && strtotime($dateEnd) > strtotime('now')) {
if (init('allowFuture', 0) == 0 && config::byKey('history::allowFuture', 'core', 0) == '0' && strtotime($dateEnd) > strtotime('now')) {
$dateEnd = date('Y-m-d H:i:s');
}

Expand Down
2 changes: 1 addition & 1 deletion core/js/history.class.js
Expand Up @@ -210,7 +210,7 @@ jeedom.history.drawChart = function(_params) {
allowZero: init(_params.option.allowZero, 0),
groupingType: _params.option.groupingType || '',
lastPointToEnd: _params.option.lastPointToEnd || 0,
allowFuture : _params.option.allowFuture || 0,
allowFuture: _params.option.allowFuture || 0,
},
dataType: 'json',
global: _params.global || true,
Expand Down

0 comments on commit a3fc9f2

Please sign in to comment.