Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii Ofat committed Jul 20, 2015
1 parent 36bc3ae commit 020daa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/default/components/totals.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class="column-<?= $column->getName() ?>"
if ($component->uses($column)):
$label = '';
switch($component->getFieldOperation($column->getName())) {
case \Nayjest\Grids\Components\TotalsRow::OPERTATION_SUM:
case \Nayjest\Grids\Components\TotalsRow::OPERATION_SUM:
$label = '';
break;
case \Nayjest\Grids\Components\TotalsRow::OPERATION_COUNT:
Expand Down
2 changes: 1 addition & 1 deletion src/Components/TotalsRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function (DataRow $row, DataProvider $currentProvider) use ($provider) {
$operation = $this->getFieldOperation($name);
switch($operation) {

case self::OPERTATION_SUM:
case self::OPERATION_SUM:
$this->src[$name] += $row->getCellValue($field);
break;
case self::OPERATION_COUNT:
Expand Down

0 comments on commit 020daa2

Please sign in to comment.