Преглед изворни кода

Merge pull request #691 from lilashih/2.0

修正列操作getKey
Jiang Qinghua пре 4 година
родитељ
комит
5bd75e8485
1 измењених фајлова са 1 додато и 1 уклоњено
  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();