From 74c636aef2a0e0d6f6ba77111daeacdff96fa408 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 13 Jan 2016 23:38:15 +0200 Subject: [PATCH] Fix for #626 --- app/Models/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Account.php b/app/Models/Account.php index ebd9e57bc6bf..bf57ab820fbc 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -806,7 +806,7 @@ class Account extends Eloquent for ($i=1; $i<=3; $i++) { if ($date = $this->getReminderDate($i)) { $field = $this->{"field_reminder{$i}"} == REMINDER_FIELD_DUE_DATE ? 'due_date' : 'invoice_date'; - if ($this->$field == $date) { + if ($invoice->$field == $date) { return "reminder{$i}"; } }