If title is empty, search is done returning all content

Created on 20 December 2022, almost 2 years ago
Updated 4 March 2023, over 1 year ago

Problem/Motivation

In certain cases, the search can be triggered with an empty title. When that happens, it returns all content in the system.

Steps to reproduce

  1. Enter text in Title field
  2. Tab out of Title field to trigger search.
  3. Tab back into Title field.
  4. Delete text in Title field.
  5. Tab out of Title field to trigger search.
  6. See "matching content" list with text that says "Total : XXX" where XXX is the total count of nodes in the system.

Proposed resolution

Code needs to be updated to not do a search when there is no title text set by the user.

Remaining tasks

  1. Merge patch.
πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jrb Raleigh-Durham Area, NC, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024