From d1548baef55947848e90ec070f052163e23f5dc0 Mon Sep 17 00:00:00 2001
From: Brett Bieber <brett.bieber@gmail.com>
Date: Mon, 6 Feb 2012 23:09:11 +0000
Subject: [PATCH] Require either amount field to be entered.

---
 src/UNL/UCARE/Year1Application.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/UNL/UCARE/Year1Application.php b/src/UNL/UCARE/Year1Application.php
index b3bdbac..181cc58 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);
-- 
GitLab