From 263a8462512320e7457c294cc3968d26850a8e7f Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sat, 4 Sep 2021 10:43:38 -0400 Subject: [PATCH] Add missing fields. defaults need to be quoted because they are evalled --- scripts/ZoneMinder/lib/ZoneMinder/Zone.pm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Zone.pm b/scripts/ZoneMinder/lib/ZoneMinder/Zone.pm index 986c5a4dc..97c6d32e8 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Zone.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Zone.pm @@ -40,6 +40,10 @@ $serial = $primary_key = 'Id'; MonitorId Type Units + NumCoords + Coords + Area + AlarmRGB CheckMethod MinPixelThreshold MaxPixelThreshold @@ -59,9 +63,13 @@ $serial = $primary_key = 'Id'; %defaults = ( Name => '', - Type => 'Active', - Units => 'Pixels', - CheckMethod => 'Blobs', + Type => q`'Active'`, + Units => q`'Pixels'`, + NumCoords => 0, + Coords => '', + Area => 0, + AlarmRGB => 0, + CheckMethod => q`'Blobs'`, MinPixelThreshold => undef, MaxPixelThreshold => undef, MinAlarmPixels => undef,