fixed some api and import stuff
This commit is contained in:
parent
1a66933693
commit
eb2a71ce65
3 changed files with 11 additions and 1 deletions
|
@ -265,6 +265,7 @@ sub post_search {
|
|||
$validation->input( $c->stash->{api_json} );
|
||||
|
||||
$validation->required('search_name');
|
||||
$validation->optional('page')->number;
|
||||
|
||||
return $c->api_validation_error if $validation->has_error;
|
||||
|
||||
|
@ -276,6 +277,11 @@ sub post_search {
|
|||
my $valid_orgs_rs = $org_rs->search({
|
||||
pending => 0,
|
||||
entity_id => { "!=" => $user->entity_id },
|
||||
},
|
||||
{
|
||||
page => $validation->param('page') || 1,
|
||||
rows => 10,
|
||||
order_by => { -desc => 'name' },
|
||||
})->search(
|
||||
\$search_stmt,
|
||||
);
|
||||
|
|
Reference in a new issue