mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:17:02 +02:00
added folder handling to webui
This commit is contained in:
@ -14,6 +14,7 @@ class ControllerSearchFolder extends Controller {
|
||||
$this->load->model('folder/folder');
|
||||
|
||||
$this->data['folders'] = $this->model_folder_folder->get_folders_for_user();
|
||||
$this->data['extra_folders'] = $this->model_folder_folder->get_extra_folders_for_user();
|
||||
|
||||
$this->render();
|
||||
}
|
||||
|
@ -17,6 +17,7 @@ class ControllerSearchHelper extends Controller {
|
||||
'note' => '',
|
||||
'ref' => '',
|
||||
'folders' => '',
|
||||
'extra_folders' => '',
|
||||
'any' => ''
|
||||
);
|
||||
|
||||
@ -94,6 +95,7 @@ class ControllerSearchHelper extends Controller {
|
||||
private function fixup_post_request() {
|
||||
if(isset($this->request->post['ref'])) { $this->a['ref'] = $this->request->post['ref']; }
|
||||
if(isset($this->request->post['folders'])) { $this->a['folders'] = $this->request->post['folders']; }
|
||||
if(isset($this->request->post['extra_folders'])) { $this->a['extra_folders'] = $this->request->post['extra_folders']; }
|
||||
|
||||
$this->a['sort'] = $this->request->post['sort'];
|
||||
$this->a['order'] = $this->request->post['order'];
|
||||
|
Reference in New Issue
Block a user