[BUGFIX] EXT:opendocs - Remove bogus initial document count 08/59708/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 15 Feb 2019 16:15:22 +0000 (17:15 +0100)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Sat, 16 Feb 2019 09:12:40 +0000 (10:12 +0100)
commit2ca74a75e5c53b4ad4d400e13682a0188c5287c9
treea9bda97ea1531a241d978299989c1c930b7db932
parentb898fc08404b942ea10fbf30b094241e3cd7dd51
[BUGFIX] EXT:opendocs - Remove bogus initial document count

When the opendocs toolbar item gets initialized, the document count shows
a bogus value as deleted records are not removed from the calculation.

As the documents are loaded deferred since #84412, the correct value gets
in place automatically which renders the initial counting obsolete and is
removed with this patch.

Additonally, a wrong class hint in OpenDocumentController is fixed.

Resolves: #87725
Related: #84412
Releases: master, 9.5
Change-Id: I0684e0950d0f4daf11042d6c078b5598bfb3d4be
Reviewed-on: https://review.typo3.org/59708
Tested-by: TYPO3com <noreply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Björn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/opendocs/Classes/Backend/ToolbarItems/OpendocsToolbarItem.php
typo3/sysext/opendocs/Classes/Controller/OpenDocumentController.php
typo3/sysext/opendocs/Resources/Private/Templates/ToolbarItems/ToolbarItem.html