Browse Source

Merge pull request #691 from lilashih/2.0

修正列操作getKey
Jiang Qinghua 4 năm trước cách đây
mục cha
commit
5bd75e8485
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();