Procházet zdrojové kódy

Merge pull request #691 from lilashih/2.0

修正列操作getKey
Jiang Qinghua před 4 roky
rodič
revize
5bd75e8485
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/Grid/RowAction.php

+ 1 - 1
src/Grid/RowAction.php

@@ -24,7 +24,7 @@ abstract class RowAction extends GridAction
     public function getKey()
     {
         if ($this->row) {
-            return $this->row->get($this->parent->getKeyName());
+            return $this->row->{$this->parent->getKeyName()};
         }
 
         return parent::getKey();