Search options: unchecked option is re-enabled after Apply when search box is empty

Aperta
#4,641 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
frontend

Direzione di ricerca

Start by reproducing the five steps in the translate view with an empty search box, then check whether the Search Options panel's Apply action overwrites the saved match-case value. The issue doesn't name files, so locate the search options state in the frontend code by searching for the search_match_case parameter. Done means that after unchecking Match case with an empty search box and clicking Apply, the option stays off on reopen and a later mixed-case search finds "Something".

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

hours P3

Reference: https://pontoon.allizom.org/sl/firefoxcom-mathjazz/all-resources/?search_match_case=true&search=SOMETHING

Steps:

  1. In Settings, under Default search options, enable “Match case”.
  2. Open the translate view and leave the search box empty.
  3. Click the magnifier dropdown to open Search Options and uncheck “Match case”.
  4. Click APPLY SEARCH OPTIONS.
  5. Type a search term in a different case from the string text (e.g. SOMETHING when the string says “Something”) and press Enter.

Expected: The search should not match case and find the string with “Something”.

Actual: Shows No results instead. “Match case” was turned back on after step 4, so the search matches case and misses “Something”. Reopening Search Options shows “Match case” checked again.

Workaround: Type the search term before changing the search options.

Lingua principale
Python
Stelle
1.7k
Fork
620
Merge medio
1g 4h
PR unite (30g)
30

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mozilla/pontoon

Tutte le issue di mozilla/pontoon

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.