add customer fields option with agent, display_custnum, status and name, RT#73721
[freeside.git] / FS / FS / sched_avail.pm
index 245c69f..bd6ff24 100644 (file)
@@ -100,7 +100,7 @@ sub check {
 
   my $error = 
     $self->ut_numbern('availnum')
-    || $self->ut_foreign_key('itemnum', 'sched_avail', 'itemnum')
+    || $self->ut_foreign_key('itemnum', 'sched_item', 'itemnum')
     || $self->ut_number('wday')
     || $self->ut_number('stime')
     || $self->ut_number('etime')