Skip to content

Content Add Search by Title isn't working. #31969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nathan-hildebrandt opened this issue Apr 23, 2025 · 2 comments · Fixed by #32194
Closed

Content Add Search by Title isn't working. #31969

nathan-hildebrandt opened this issue Apr 23, 2025 · 2 comments · Fixed by #32194

Comments

@nathan-hildebrandt
Copy link

Problem Statement

On the latest versions, the Content Add screen search functionality isn't completely working. When you select a specific content type and try to search by the Title, it does not work.

Steps to Reproduce

I did the following to reproduce this bug.

  1. Logged into the demo.dotcms.com backend.
  2. Went to any page.
  3. Clicked the + icon on any container and selected Content
  4. Selected a Content Type, eg Activity
  5. I typed in one of the Activity titles into the "Title" section of the search. eg Snowboarding
  6. Click Search to see that nothing changes and doesn't get filtered by whats in the search field.
ContentSearch.mp4

Acceptance Criteria

When you type in something into one of the search fields, it should filter to contain what is typed in that field when clicking Search.

dotCMS Version

25.04.09-1
25.04.16-1

Proposed Objective

Customer Support

Proposed Priority

Priority 2 - Important

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

https://dotcms.freshdesk.com/a/tickets/30758

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

Copy link

@dsolistorres dsolistorres moved this from In Progress to In Review in dotCMS - Product Planning May 16, 2025
github-merge-queue bot pushed a commit that referenced this issue May 19, 2025
Closes #31969

### Proposed Changes
* This pull request includes a small change to the `ContentSelector.js`
file. The change removes the assignment of the `structureVelVar`
property in the `_renderSearchField` method, because it was already set
in `_structureDetailsCallback` method after a content type is selected
in the search window.
* This assignment removal also avoids setting `structureVelVar` to
undefined when `field['fieldStructureVarName']` is not set, that was
causing this issue.
@github-project-automation github-project-automation bot moved this from In Review to Done in dotCMS - Product Planning May 19, 2025
@erickgonzalez erickgonzalez moved this from Done to QA in dotCMS - Product Planning May 19, 2025
@gortiz-dotcms
Copy link
Contributor

gortiz-dotcms commented May 21, 2025

QA Passed:

The search is now working on main as it should

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants