Skip to content
Snippets Groups Projects
Commit d1548bae authored by Brett Bieber's avatar Brett Bieber
Browse files

Require either amount field to be entered.

parent 4950ae7e
Branches master
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment