add default for Units in new zone

This commit is contained in:
Isaac Connor 2019-12-13 11:51:07 -05:00
parent d2a23e4822
commit 0bbbbb302e
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ if ( !isset($newZone) ) {
'Id' => 0, 'Id' => 0,
'Name' => translate('New'), 'Name' => translate('New'),
'Type' => 'Active', 'Type' => 'Active',
'Units' => 'Pixels',
'MonitorId' => $monitor->Id(), 'MonitorId' => $monitor->Id(),
'NumCoords' => 4, 'NumCoords' => 4,
'Coords' => sprintf('%d,%d %d,%d, %d,%d %d,%d', $minX, $minY, $maxX, $minY, $maxX, $maxY, $minX, $maxY), 'Coords' => sprintf('%d,%d %d,%d, %d,%d %d,%d', $minX, $minY, $maxX, $minY, $maxX, $maxY, $minX, $maxY),