Problem/Motivation

If I create a views filter group with OR, the system displays AND, as in the enclosed screenshot.

Steps to reproduce

Create an OR filter group in any view and observe that it says AND, not OR, as in the enclosed screenshot.

Proposed resolution

Display OR, not AND, in bold and italic, next to each filter within an OR group.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3346391

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alberto56 created an issue. See original summary.

sakthi_dev’s picture

Assigned: Unassigned » sakthi_dev
sakthi_dev’s picture

Assigned: sakthi_dev » Unassigned
Status: Active » Needs review
StatusFileSize
new2.28 KB

Created a patch for filter group Operator label. Please review.

sakthi_dev’s picture

StatusFileSize
new54.5 KB
new54.22 KB

Attached the working Screenshots of the patch in #3

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new1.33 KB

The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

tanuj.’s picture

Status: Needs work » Needs review
StatusFileSize
new2.29 KB
new707 bytes

Tried to fix CCF on #3.

Status: Needs review » Needs work

The last submitted patch, 6: 3346391-6.patch, failed testing. View results

tanuj.’s picture

Status: Needs work » Needs review
StatusFileSize
new2.28 KB

i changed val() function to value() reverting it.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new1.13 KB

The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

gauravvvv’s picture

Status: Needs work » Needs review
StatusFileSize
new2.28 KB
new678 bytes

Used element.value instead of $(element).val() in patch #8. Attached interdiff for same. please review

Status: Needs review » Needs work

The last submitted patch, 10: 3346391-10.patch, failed testing. View results

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

mortona2k made their first commit to this issue’s fork.

mortona2k’s picture

I applied the patch to an issue fork for testing, but it is not working for me.

I was able to get it to display the opposite value for both Or and And, unlike what is specified in the title.

It seems like the filter for the operator selection is changing every group label and not just it's own.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.