diff --git a/src/UNL/UCARE/Year1Application.php b/src/UNL/UCARE/Year1Application.php index b3bdbac5fa9b4f901adceb63bdb208c2eb13c18b..181cc58cd6fc540317dc16381761420143f33210 100644 --- a/src/UNL/UCARE/Year1Application.php +++ b/src/UNL/UCARE/Year1Application.php @@ -65,6 +65,9 @@ class UNL_UCARE_Year1Application extends UNL_UCARE_Record implements UNL_UCARE_A function save() { + if (empty($this->amount_requested) && empty($this->amount_requested_other)) { + throw new Exception('You must enter a requested amount'); + } $this->duration_begin = $this->getDate($this->duration_begin); $this->duration_end = $this->getDate($this->duration_end); $this->expected_graduation = $this->getDate($this->expected_graduation);