Bug #81732
closedSearch with autocomplete in Workspace doesn't find non published records
100%
Description
Hi,
We use TYPOe 8.7.1
How to reproduice :
- Switch to a draft mode
- Create a record (a news for example) with title "news test" for example
- In a TCA config of another type of record, i have this configuration :
'config' => array(
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'tx_news_domain_model_news',
'size' => 10,
'minitems' => 0,
'maxitems' => 999,
)
- When i use the autocomplete search, and type "news test", there are no results. But when i click on the folder icon, and try to go get the record in the page tree, i can easily select the "news test" record.
So the autocomplete search doesn't return non plublished records when i'm in a draft
Thanks
Updated by Benni Mack over 5 years ago
- Status changed from New to Needs Feedback
Hey,
this actually works for me in TYPO3 v9. Can you recheck?
Thanks.
Benni.
Updated by Riccardo De Contardi about 5 years ago
I Tried the following tests with 9.5.10 and EXT:news
Prerequisites¶
1) a Sysfolder with some news
2) a Draft workspace
Test 1¶
1) Switch to Draft Workspace and go to the sysfolder with news records
2) Create a new News record called for example "BMXBMX"
3) Create another News record called for example "TEST"
4) Edit "TEST" > tab "Relations" > Related news
5) Search for "BMX"
Expected Result:¶
the autocomplete should work and find the record "BMXBMX"
Actual result:¶
No record found
Test 2¶
1) Switch to Draft Workspace and go to an existing page
2) Create in it a content element, type: Plugin: News
3) Edit it > Tab Plugin > field List of Articles
4) Search for "BMX"
Expected Result:¶
the autocomplete should work and find the record "BMXBMX"
Actual result:¶
No record found
Test 3¶
1) Switch to Draft Workspace
2) Create a new page called "VMXVMX"
3) Go to an existing page
4) Create in it a content element > type: General plugin
5) Edit it > Tab Plugin > field Record Storage page
6) Search for "VMX"
Result¶
the page is found.
Updated by Georg Ringer over 4 years ago
- Status changed from Needs Feedback to Accepted
Updated by Georg Ringer over 4 years ago
- TYPO3 Version changed from 8 to 9
still not working in master 10.4
Updated by Daniel Windloff about 4 years ago
- Related to Story #82206: list module enhancements/bugfixes added
Updated by Rémy DANIEL over 3 years ago
Fix proposal:
--- a/typo3/sysext/backend/Classes/Form/Wizard/SuggestWizardDefaultReceiver.php
+++ b/typo3/sysext/backend/Classes/Form/Wizard/SuggestWizardDefaultReceiver.php
@@ -103,7 +103,5 @@
->add(GeneralUtility::makeInstance(DeletedRestriction::class))
- // if table is versionized, only get the records from the Live Workspace
- // the overlay itself of WS-records is done below
- ->add(GeneralUtility::makeInstance(WorkspaceRestriction::class, 0));
+ ->add(GeneralUtility::makeInstance(WorkspaceRestriction::class, $GLOBALS['BE_USER']->workspace));
$this->table = $table;
$this->config = $config;
// get a list of all the pages that should be looked on
Updated by Gerrit Code Review 6 months ago
- Status changed from Accepted to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84518
Updated by Gerrit Code Review 5 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84640
Updated by Georg Ringer 5 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2a24d55865be0d0d9b0e5e7c5ce898161944dd7b.