Project

General

Profile

Actions

Bug #81732

open

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

Added by Mohamed Rebai over 6 years ago. Updated about 3 years ago.

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

0%

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/bugfixesNew2005-07-21

Actions
Actions #1

Updated by Mohamed Rebai over 6 years ago

  • Category set to Workspaces
Actions #2

Updated by Benni Mack almost 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 over 4 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 about 4 years ago

  • Status changed from Needs Feedback to Accepted
Actions #5

Updated by Georg Ringer about 4 years ago

  • TYPO3 Version changed from 8 to 9

still not working in master 10.4

Actions #6

Updated by Daniel Windloff over 3 years ago

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

Updated by Rémy DANIEL about 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

Also available in: Atom PDF