Browse Source

Fix method name

Thomas Rabaix 14 years ago
parent
commit
fe17ef963f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Datagrid/ListMapper.php

+ 1 - 1
Datagrid/ListMapper.php

@@ -60,7 +60,7 @@ class ListMapper
             $this->admin->addListFieldDescription($name, $fieldDescription);
             $this->admin->addListFieldDescription($name, $fieldDescription);
 
 
         } else if (is_string($name) && $this->admin->hasListFieldDescription($name)) {
         } else if (is_string($name) && $this->admin->hasListFieldDescription($name)) {
-            $fieldDescription = $this->admin->getFormFieldDescription($name);
+            $fieldDescription = $this->admin->getListFieldDescription($name);
         } else {
         } else {
 
 
             throw new \RuntimeException('invalid state');
             throw new \RuntimeException('invalid state');