Merge branch 'master' into filter_add_copy
This commit is contained in:
commit
d4eae18055
|
@ -133,12 +133,12 @@ sub Sql {
|
||||||
$$self{Sql} = shift if @_;
|
$$self{Sql} = shift if @_;
|
||||||
if ( ! $$self{Sql} ) {
|
if ( ! $$self{Sql} ) {
|
||||||
$self->{Sql} = '';
|
$self->{Sql} = '';
|
||||||
if ( ! $self->{Query} ) {
|
if ( ! $self->{Query_json} ) {
|
||||||
Warning("No query in Filter!");
|
Warning("No query in Filter!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $filter_expr = ZoneMinder::General::jsonDecode($self->{Query});
|
my $filter_expr = ZoneMinder::General::jsonDecode($self->{Query_json});
|
||||||
my $sql = 'SELECT E.*,
|
my $sql = 'SELECT E.*,
|
||||||
unix_timestamp(E.StartTime) as Time,
|
unix_timestamp(E.StartTime) as Time,
|
||||||
M.Name as MonitorName,
|
M.Name as MonitorName,
|
||||||
|
|
Loading…
Reference in New Issue