Преглед на файлове

Add missing s to actions type

Emmanuel Vella преди 10 години
родител
ревизия
f7c4cb562b
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      Datagrid/ListMapper.php
  2. 1 1
      Tests/Datagrid/ListMapperTest.php

+ 1 - 1
Datagrid/ListMapper.php

@@ -86,7 +86,7 @@ class ListMapper extends BaseMapper
         }
 
         // Ensure batch and action pseudo-fields are tagged as virtual
-        if (in_array($type, array('action', 'batch', 'select'))) {
+        if (in_array($type, array('actions', 'batch', 'select'))) {
             $fieldDescriptionOptions['virtual_field'] = true;
         }
 

+ 1 - 1
Tests/Datagrid/ListMapperTest.php

@@ -214,7 +214,7 @@ class ListMapperTest extends \PHPUnit_Framework_TestCase
 
     public function testAutoAddVirtualOption()
     {
-        foreach (array('action', 'batch', 'select') as $type) {
+        foreach (array('actions', 'batch', 'select') as $type) {
             $this->listMapper->add('_'.$type, $type);
         }