Commit 3f940546 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

- FIX : Ajax request (temporary)

parent 33bdf593
Loading
Loading
Loading
Loading
Loading
+1 −16
Original line number Diff line number Diff line
@@ -1292,22 +1292,7 @@ class ProjectGrantController extends AbstractOscarController implements UseNotif
        $id = $this->params()->fromRoute('id');
        $ui = $this->params()->fromQuery('ui');

        if( $ui || !$this->isAjax() ){
            $view = new ViewModel([
                'composant' => 'activitydocument',
                'props' => [
                    'url' => $_SERVER['REQUEST_URI'],
                    'documentTypes' => $this->getActivityService()->getTypesDocuments(),
                    'urlDocumentType' => $this->url()->fromRoute('contractdocument/document-change-type')
                ]
            ]);

            $view->setTemplate('oscar/generic-vue-debug');

            return $view;
        }
        
        //return $this->getResponseInternalError("A ERROR TEST");


        /** @var Activity $entity */