Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restricted pages not visible in backend module anymore #62

Open
georgringer opened this issue May 31, 2021 · 0 comments
Open

Restricted pages not visible in backend module anymore #62

georgringer opened this issue May 31, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@georgringer
Copy link

If a page of a form is getting restricted with e.g. hidden or start/endtime, the page title won't be shown anymore in the backend module. Our customers uses a lot of forms, especially for stuff like quizzes and those pages are e.g. time restricted.

As a quick fix I did this

diff --git a/Classes/Domain/Model/FormLogEntry.php b/Classes/Domain/Model/FormLogEntry.php
--- a/Classes/Domain/Model/FormLogEntry.php	(date 1622447981000)
+++ b/Classes/Domain/Model/FormLogEntry.php	(date 1622447981000)
@@ -15,16 +15,16 @@
 class FormLogEntry extends AbstractEntity
 {
     /**
-     * @var \Pagemachine\Formlog\Domain\Model\FormLogEntry\Page
+     * @var int
      */
     protected $page;
 
     /**
-     * @return \Pagemachine\Formlog\Domain\Model\FormLogEntry\Page
+     * @return array
      */
     public function getPage()
     {
-        return $this->page;
+        return \TYPO3\CMS\Backend\Utility\BackendUtility::getRecord('pages', $this->page, 'title,uid', '', false);
     }
 
     /**

but I propose to remove the extbase models in total and use raw queries directly which would also improve performance I guess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants