Browse Source

修正列操作getKey

lila 4 years ago
parent
commit
7352225f04
1 changed files with 1 additions and 1 deletions
  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();