mirror of https://gitee.com/karson/fastadmin.git
Pre Merge pull request !528 from 还俗二师兄/1.7.x-dev-selectPage
commit
32d75cd597
|
|
@ -235,7 +235,7 @@ class SelectPage
|
|||
protected function validateField(string $field)
|
||||
{
|
||||
$field = strtolower($field);
|
||||
if (!in_array($field, $this->allowedFields, true)) {
|
||||
if (!in_array($field, $this->allowedFields, true) && !in_array($field, $this->resolveSelectpageFields(), true)) {
|
||||
throw new Exception('Invalid parameters');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue