1. dr.sus
  2. Bug Report
  3. Wednesday, January 13 2016, 06:48 PM
Hi,

I think this might be a bug on the search module located under 'People' tab of the social network:

When a superuser searches using some keywords, everything is fine, search proceeds as 'AND' (I know about the update, I refer to fields that are not in the updated search type and to 1.3.12). If no one meets all the criteria search finds no one. Now when a regular user searches using the same parameters, no matter what, the searching user will see himself in any search result. On top of it, the search does not function as 'AND', instead it functions as a weird 'OR':say you search using keywords in two fields, one field below the other. If your search criteria in the upper field is met, it does not matter what happens in the field below - the search will show users that meet your search criteria in the upper field. Contrary, if the criteria in the upper search field is not met and the search should have found users in the lower field - it won't.
This is very weird and should be taken care of. I would be ok if the regular users would be able to get the same search output as superuser does, otherwise it is very misleading.
Thanks.
Accepted Answer
admin Accepted Answer
Admin
Confirmed! this is a Bug. when privacy for field is enabled then search not work well, with Super Admin this not happen because Super Users skip privacy options. Try to replace /components/com_jsn/models/list.php with attached file.

We will fix in next release. Thanks for report it.
Attachments (1)
  1. more than a month ago
  2. Bug Report
  3. # Permalink
admin Accepted Answer
Admin
I think it depends from some your configuration (privacy or ACL). Tried on our environment and all works.

Can you provide me your site details to check this? you can use the form below the reply in "Site Details" tab.

Also include some search example to test.
  1. more than a month ago
  2. Bug Report
  3. # 1
dr.sus Accepted Answer
sent site details and description
  1. more than a month ago
  2. Bug Report
  3. # 2
dr.sus Accepted Answer
worked like a charm.
Thanks!
  1. more than a month ago
  2. Bug Report
  3. # 3
dr.sus Accepted Answer
One hickup though. Not sure it is connected, but I can't now unfriend users from their profile page, only from the friends module. I click unfriend, it asks me whether I am sure and then reloads the profile page and nothing happens.
  1. more than a month ago
  2. Bug Report
  3. # 4
admin Accepted Answer
Admin
This is a bug, I have fixed on your site by changing fiel /plugins/jsn/socialnetwork/app/View/Users/view.ctp
  1. more than a month ago
  2. Bug Report
  3. # 5
dr.sus Accepted Answer
Could you also post what should be edited, so I would be able to make corrections on my production site as well.
Thanks.
  1. more than a month ago
  2. Bug Report
  3. # 6
admin Accepted Answer
Admin
Yes,
in file /plugins/jsn/socialnetwork/app/View/Users/view.ctp at line 83 I have replaced this:
jQuery.post('/friends/ajax_remove', {id: id}, function() {

with this
jQuery.post('<?php echo $this->request->base?>/friends/ajax_remove', {id: id}, function() {
  1. more than a month ago
  2. Bug Report
  3. # 7
dr.sus Accepted Answer
thanks, it did it.
  1. more than a month ago
  2. Bug Report
  3. # 8
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.