Must set StateId as well as it cannot be Null. Default to 1

This commit is contained in:
Isaac Connor 2021-02-18 10:39:39 -05:00
parent ba6797a143
commit 2dfb07a69b
1 changed files with 4 additions and 0 deletions

View File

@ -224,6 +224,7 @@ Debug("@Monitors");
$$Event{RelativePath} = join('/', $day_dir, $event_path); $$Event{RelativePath} = join('/', $day_dir, $event_path);
$$Event{Scheme} = 'Deep'; $$Event{Scheme} = 'Deep';
$$Event{Name} = "Event $event_id recovered"; $$Event{Name} = "Event $event_id recovered";
$$Event{StateId} = 1;
$Event->MonitorId( $monitor_dir ); $Event->MonitorId( $monitor_dir );
$Event->StorageId( $Storage->Id() ); $Event->StorageId( $Storage->Id() );
$Event->DiskSpace( undef ); $Event->DiskSpace( undef );
@ -287,6 +288,7 @@ Debug("@Monitors");
$$Event{RelativePath} = join('/', $day_dir, $event_dir); $$Event{RelativePath} = join('/', $day_dir, $event_dir);
$$Event{Scheme} = 'Deep'; $$Event{Scheme} = 'Deep';
$$Event{Name} = "Event $event_id recovered"; $$Event{Name} = "Event $event_id recovered";
$$Event{StateId} = 1;
$Event->MonitorId( $monitor_dir ); $Event->MonitorId( $monitor_dir );
$Event->Width( $Monitor->Width() ); $Event->Width( $Monitor->Width() );
$Event->Height( $Monitor->Height() ); $Event->Height( $Monitor->Height() );
@ -352,6 +354,7 @@ Debug("@Monitors");
$$Event{Scheme} = 'Medium'; $$Event{Scheme} = 'Medium';
$$Event{RelativePath} = $event_dir; $$Event{RelativePath} = $event_dir;
$$Event{Name} = "Event $event_id recovered"; $$Event{Name} = "Event $event_id recovered";
$$Event{StateId} = 1;
$Event->MonitorId( $monitor_dir ); $Event->MonitorId( $monitor_dir );
$Event->Width( $Monitor->Width() ); $Event->Width( $Monitor->Width() );
$Event->Height( $Monitor->Height() ); $Event->Height( $Monitor->Height() );
@ -393,6 +396,7 @@ Debug("@Monitors");
if ( confirm() ) { if ( confirm() ) {
$$Event{Scheme} = 'Shallow'; $$Event{Scheme} = 'Shallow';
$$Event{Name} = "Event $event recovered"; $$Event{Name} = "Event $event recovered";
$$Event{StateId} = 1;
#$$Event{Path} = $event_path; #$$Event{Path} = $event_path;
$Event->MonitorId( $monitor_dir ); $Event->MonitorId( $monitor_dir );
$Event->Width( $Monitor->Width() ); $Event->Width( $Monitor->Width() );