Skip to content

Commit 753c0c0

Browse files
committed
bugfix
1 parent 71116bc commit 753c0c0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

api.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -1862,13 +1862,6 @@ protected function getParameters($settings) {
18621862
$page = $this->processPageParameter($page);
18631863
$orderings = $this->processOrderingsParameter($orderings);
18641864

1865-
// input
1866-
$multi = (strpos($key[0],',')!==false) || (strlen($post)?($post[0]=='['):false);
1867-
$inputs = $this->retrieveInputs($post);
1868-
if ($before) {
1869-
$this->applyBeforeHandler($action,$database,$tables[0],$key[0],$before,$inputs);
1870-
}
1871-
18721865
// reflection
18731866
list($tables,$collect,$select) = $this->findRelations($tables,$database,$auto_include);
18741867
$fields = $this->findFields($tables,$columns,$exclude,$select,$database);
@@ -1880,6 +1873,13 @@ protected function getParameters($settings) {
18801873
if ($tenancy_function) $this->applyTenancyFunction($tenancy_function,$action,$database,$fields,$filters);
18811874
if ($column_authorizer) $this->applyColumnAuthorizer($column_authorizer,$action,$database,$fields);
18821875

1876+
// input
1877+
$multi = (strpos($key[0],',')!==false) || (strlen($post)?($post[0]=='['):false);
1878+
$inputs = $this->retrieveInputs($post);
1879+
if ($before) {
1880+
$this->applyBeforeHandler($action,$database,$tables[0],$key[0],$before,$inputs);
1881+
}
1882+
18831883
foreach ($inputs as $k=>$context) {
18841884
$input = $this->filterInputByFields($context,$fields[$tables[0]]);
18851885

0 commit comments

Comments
 (0)