Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee committed Mar 16, 2017
1 parent 71116bc commit 753c0c0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions api.php
Expand Up @@ -1862,13 +1862,6 @@ protected function getParameters($settings) {
$page = $this->processPageParameter($page);
$orderings = $this->processOrderingsParameter($orderings);

// input
$multi = (strpos($key[0],',')!==false) || (strlen($post)?($post[0]=='['):false);
$inputs = $this->retrieveInputs($post);
if ($before) {
$this->applyBeforeHandler($action,$database,$tables[0],$key[0],$before,$inputs);
}

// reflection
list($tables,$collect,$select) = $this->findRelations($tables,$database,$auto_include);
$fields = $this->findFields($tables,$columns,$exclude,$select,$database);
Expand All @@ -1880,6 +1873,13 @@ protected function getParameters($settings) {
if ($tenancy_function) $this->applyTenancyFunction($tenancy_function,$action,$database,$fields,$filters);
if ($column_authorizer) $this->applyColumnAuthorizer($column_authorizer,$action,$database,$fields);

// input
$multi = (strpos($key[0],',')!==false) || (strlen($post)?($post[0]=='['):false);
$inputs = $this->retrieveInputs($post);
if ($before) {
$this->applyBeforeHandler($action,$database,$tables[0],$key[0],$before,$inputs);
}

foreach ($inputs as $k=>$context) {
$input = $this->filterInputByFields($context,$fields[$tables[0]]);

Expand Down

0 comments on commit 753c0c0

Please sign in to comment.