We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 528fc7c commit 5a1465eCopy full SHA for 5a1465e
SortableGridBehavior.php
@@ -82,7 +82,7 @@ public function beforeInsert()
82
call_user_func($this->scope, $query);
83
}
84
85
- $maxOrder = $query->max('{{' . $model::tableName() . '}}.[[' . $this->sortableAttribute . ']]');
+ $maxOrder = $query->max('{{' . trim($model::tableName(), '{}') . '}}.[[' . $this->sortableAttribute . ']]');
86
$model->{$this->sortableAttribute} = $maxOrder + 1;
87
88
0 commit comments