Emmanuel Vella 10 лет назад
Родитель
Сommit
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
         // 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;
             $fieldDescriptionOptions['virtual_field'] = true;
         }
         }
 
 

+ 1 - 1
Tests/Datagrid/ListMapperTest.php

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