File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ apexwire/yii2-restclient changelog
3
3
4
4
## 0.3 Under development
5
5
6
+ - Поиск сломал страницу просмотра #10
6
7
7
8
## 0.2 2016-03-17
8
9
Original file line number Diff line number Diff line change @@ -60,11 +60,9 @@ public function queryAll($options = [])
60
60
public function queryOne ($ options = [])
61
61
{
62
62
//TODO: use $this->getOldPrimaryKey() yii\restclient\ActiveRecord
63
- $ url = $ this ->index . '/ ' . ArrayHelper::getValue ($ this ->queryParts , 'id ' );
64
- ArrayHelper::remove ($ this ->queryParts , 'id ' );
65
- $ options = array_merge ($ this ->queryParts , $ options );
63
+ $ url = $ this ->index . '/ ' . current ($ this ->queryParts );
66
64
67
- return $ this ->db ->get ($ url, $ options );
65
+ return $ this ->db ->get ($ url );
68
66
}
69
67
70
68
/**
You can’t perform that action at this time.
0 commit comments