Renamed various fields from 'amount' to 'queryAmount' to prevent interfering with the getAmountAttribute property.

This commit is contained in:
James Cole
2015-04-09 21:14:15 +02:00
parent 0224d1d59b
commit 37f40d8637
5 changed files with 42 additions and 40 deletions

View File

@@ -81,7 +81,7 @@ class ReportController extends Controller
$id = intval($budget->id);
$data = $budget->toArray();
$array[$id] = $data;
if (floatval($data['amount']) != 0) {
if (floatval($data['queryAmount']) != 0) {
$hide = false;
}
}