3333/**
3434 * Class SearchController
3535 */
36- class SearchController extends AbstractController {
36+ class SearchController extends AbstractController
37+ {
3738
3839 /**
3940 * searchRepository
@@ -48,7 +49,8 @@ class SearchController extends AbstractController {
4849 *
4950 * @return void
5051 */
51- public function listAction () {
52+ public function listAction ()
53+ {
5254 $ userUid = $ this ->user ->getUid ();
5355
5456 $ this ->view ->assignMultiple ([
@@ -63,7 +65,8 @@ public function listAction() {
6365 *
6466 * @return void
6567 */
66- public function saveAction () {
68+ public function saveAction ()
69+ {
6770
6871 }
6972
@@ -76,16 +79,16 @@ public function createAction()
7679 {
7780 if ($ this ->user !==NULL && $ this ->user ->getUid ()) {
7881
79- $ searchParams = GeneralUtility::_GP ('tx_dlf ' );
82+ $ searchParams = GeneralUtility::_GP ('tx_dlf_search ' );
8083
81- if ( array_key_exists ('query ' ,$ searchParams ) && array_key_exists ('fulltext ' ,$ searchParams )) {
84+ if ( is_array ( $ searchParams ) && array_key_exists ('query ' ,$ searchParams[ ' searchParameter ' ] ) && array_key_exists ('fulltext ' ,$ searchParams[ ' searchParameter ' ] )) {
8285 $ arguments = $ this ->request ->getArguments ();
8386
8487 $ searchRequest = new Search ();
8588 $ title = $ arguments ['title ' ] ? $ arguments ['title ' ] : LocalizationUtility::translate ('search ' , 'DigasFeManagement ' ).': ' .strftime ('%d.%m.%y - %H:%M ' );
8689
8790 $ searchRequest ->setTitle ($ title );
88- $ searchRequest ->setSearchParams ($ searchParams );
91+ $ searchRequest ->setSearchParams ($ searchParams[ ' searchParameter ' ] );
8992 $ searchRequest ->setFeUser ($ this ->user ->getUid ());
9093
9194 $ this ->searchRepository ->add ($ searchRequest );
@@ -95,7 +98,7 @@ public function createAction()
9598 'DigasFeManagement '
9699 );
97100
98- if (GeneralUtility::_GET ('type ' )>0 ) {
101+ if (GeneralUtility::_GET ('type ' )>0 ) {
99102 return $ statusMessage ;
100103 }
101104
0 commit comments