Bug #78457

Suggest-wizard does not submit after first empty result

Added by Peter Rauber almost 3 years ago. Updated 12 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-10-27
Due date:
% Done:

100%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

If you search in the suggest-wizard (i.e. to select a page for shortcuts) it stops searching once the result was empty.

Example:
  1. You search for "12" and the result is empty (because there is no page with this title and also none with this uid)
  2. After that you type "3" and you expect to search now for "123" (this page uid exists) but no search is invoked now.

Reason is the option "preventBadQueries" in jquery.autocomplete which is by default activated.

Solution ideas:
  • switch off that option for all suggest-inputs in "typo3/sysext/backend/Resources/Public/JavaScript/FormEngineSuggest.js"
  • or make it configurable

As a proof, I switched it off in my js-console with

TYPO3.jQuery('.t3-form-suggest').autocomplete().setOptions({preventBadQueries:false});

and this solves the problem.


Related issues

Related to TYPO3 Core - Bug #77566: Livesearch doesn't submit after first empty result Closed 2016-08-22

Associated revisions

Revision 82e93c5b (diff)
Added by Wouter Wolters almost 3 years ago

[BUGFIX] Continue searching after empty result in suggest wizard

Apply the same fix as was done for the LiveSearch.

Resolves: #78457
Related: #77566
Releases: master,7.6
Change-Id: I861e6267b4804f8009d138e22520f1b95ba421b6
Reviewed-on: https://review.typo3.org/50536
Tested-by: TYPO3com <>
Reviewed-by: Georg Ringer <>
Tested-by: Georg Ringer <>
Reviewed-by: Frank Naegler <>
Tested-by: Frank Naegler <>

Revision 692f4390 (diff)
Added by Wouter Wolters almost 3 years ago

[BUGFIX] Continue searching after empty result in suggest wizard

Apply the same fix as was done for the LiveSearch.

Resolves: #78457
Related: #77566
Releases: master,7.6
Change-Id: I861e6267b4804f8009d138e22520f1b95ba421b6
Reviewed-on: https://review.typo3.org/50543
Reviewed-by: Frank Naegler <>
Tested-by: Frank Naegler <>

History

#1 Updated by Peter Rauber almost 3 years ago

As a workaround I could also use the JS-command mentioned above inside a custom js-file. But I dont know how to configure TYPO3 to load custom js-files in the backend.
I know how to do that in an own backend-module but here I would need it to be loaded by default everywhere.

#2 Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50536

#3 Updated by Gerrit Code Review almost 3 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50543

#4 Updated by Wouter Wolters almost 3 years ago

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

#5 Updated by Benni Mack 12 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF