Project

General

Profile

Actions

Bug #81732

closed

Search with autocomplete in Workspace doesn't find non published records

Added by Mohamed Rebai over 7 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2017-06-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Story #82206: list module enhancements/bugfixesIn Progress2005-07-21

Actions
Actions #1

Updated by Mohamed Rebai over 7 years ago

  • Category set to Workspaces
Actions #2

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.

Actions #3

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.

Actions #4

Updated by Georg Ringer over 4 years ago

  • Status changed from Needs Feedback to Accepted
Actions #5

Updated by Georg Ringer over 4 years ago

  • TYPO3 Version changed from 8 to 9

still not working in master 10.4

Actions #6

Updated by Daniel Windloff about 4 years ago

  • Related to Story #82206: list module enhancements/bugfixes added
Actions #7

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
Actions #8

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

Actions #9

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

Actions #10

Updated by Georg Ringer 5 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #11

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF