#5960 closed defect (bug) (fixed)
Members pagination and search_term in ajax request from placeholder in other languages
Reported by: | An-tonio | Owned by: | imath |
---|---|---|---|
Milestone: | 2.2 | Priority: | normal |
Severity: | normal | Version: | 2.1 |
Component: | Templates | Keywords: | has-patch commit |
Cc: |
Description
Wordpress: 4.0
Buddypress: 2.1.1
In members listing, ajax pagination is not working for other languages.
In ajax post Request I see that search_term is set to placeholder value (in spanish this is "Buscar usuarios..." and when paginate it get no results.
In english it work ok.
I think it can be the same problem with all search/listing/pagination.
Thanks.
Attachments (2)
Change History (7)
#3
@
10 years ago
- Component changed from Members to Theme / Template Parts
- Keywords commit added; 2nd-opinion removed
I don't really understand the root issue with the pagination here, but 5960.01.patch looks like the way to go. The 02 patch seems overcomplicated.
Note: See
TracTickets for help on using
tickets.
Hi An-tonio,
Thanks a lot for your feedback. this is a side effect of r9045. I'm using the placeholder because if javascript is disabled the pagination don't get the search_terms as the field value is empty.
I think we have two ways to solve this :
s
parameter > see 5960.01.patchplaceholder
attribute for the default textbp_get_search_default_text()
but use thevalue
if a search was performed > see 5960.02.patch