Fix #20175: Fix bad result for pagination when used with GridView

This commit is contained in:
Alex
2024-06-08 10:29:40 +03:00
committed by GitHub
parent f1ac78f578
commit 3fa2d61e54
19 changed files with 64 additions and 47 deletions

View File

@ -7,7 +7,6 @@
namespace yii\data;
use Yii;
use yii\base\InvalidConfigException;
use yii\db\Connection;
use yii\db\Expression;
@ -150,10 +149,8 @@ class SqlDataProvider extends BaseDataProvider
$keys[] = call_user_func($this->key, $model);
}
}
return $keys;
}
return array_keys($models);
}