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

Feature: delete answer entries from backend module #34

Open
akiessling opened this issue Jul 31, 2020 · 2 comments
Open

Feature: delete answer entries from backend module #34

akiessling opened this issue Jul 31, 2020 · 2 comments

Comments

@akiessling
Copy link
Contributor

There was already a feature request for it in #23, but deleting the entries directly from the database makes this an admin only task.
The possibility to delete ansers/log entries should be provided the backend module, right now only single entries can be deleted through the detail view.

After looking at the TCA of the table: should this really be soft-deletable? Logging for EXT:form was not added to the core due to concerns about data privacy, thus there needs to be an option to remove the records without a restore option.

@Wh0l3
Copy link
Contributor

Wh0l3 commented Jul 22, 2021

Hello there
I added the possibility to remove all deleted entries from a selected page, beside some other things.
feature/3.1.0

@AstCommodore
Copy link

Hello there!

A very good and welcome feature, but sadly it is a little bit buggy, nor?

TYPO3 10.4.28
frp_form_answers 3.1.1

  • Clicking "delete entries" next to "export" ends up in an error:
Call to a member function getDocHeaderComponent() on null

in /var/www/html/public/typo3conf/ext/frp_form_answers/Classes/Controller/FormEntryController.php line 131
        parent::initializeView($view);
        $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
        
     if ($this->actionMethodName != 'exportAction') {
         $view->getModuleTemplate()->getDocHeaderComponent()->setMetaInformation([]);

         $pageRenderer = $this->view->getModuleTemplate()->getPageRenderer();
         $pageRenderer->addInlineLanguageLabelFile('EXT:lang/Resources/Private/Language/locallang_core.xlf');

Using the delete button in the entry's row, will do – nothing. An error in the browser's console is thrown:

Uncaught TypeError: Cannot read properties of undefined (reading 'button.cancel')
    at HTMLAnchorElement.<anonymous> (AjaxDataHandler.js?bust=1652437827:13:1605)
    at HTMLDocument.dispatch (jquery.js?bust=1652437827:5246:27)
    at HTMLDocument.elemData.handle (jquery.js?bust=1652437827:5053:28)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants