[TYPO3-core] RFC #13942: Hiding Option Checkboxes and search fields on "empty" list view does not work

Sebastian Michaelsen sebastian.gebhard at gmail.com
Sun Aug 8 00:10:58 CEST 2010


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=13942

Branches:
trunk

Problem:
When you open a page in list view which has no records to display, it still shows up Checkboxes for 
"Extended View" and "Localization view" and a search form.
A check to hide these is implemented but does not work anymore.
The check for $dblist->HTMLcode is not reliable, because $dblist produced always HTML-Output even if 
there are no tables to render.

Solution:
Use $dblist->counter instead to determine if there were any tables rendered.

Notes:
I had to move the Clipboard stuff outside the if-Condition. The Clipboard should also be displayed 
on empty pages so that it can be used to paste records.

How to test:
* View an empty page (no records of any table on it) in the list view and see that checkboxes and 
the search are there
* Apply the patch
* Now only the clipboard should be left

Kind regards,
Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 13942_v1.diff
Type: text/x-diff
Size: 2881 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100808/d0315ea0/attachment.diff>


More information about the TYPO3-team-core mailing list