CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • case search: all/my cases
Pages: [1]

Author Topic: case search: all/my cases  (Read 1042 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
case search: all/my cases
November 01, 2010, 10:03:44 am
in advanced search and case search we have a radio button field to search for all cases or my cases.
we also have a clear link to remove the selection.

however, if you clear the selection and run a search, the "my cases" option is reselected as part of the search.

in the advanced search, I don't think we should re-default to an option if cleared. if the user clears the value, it should effectively remove the case criteria from the advanced search altogether (unless other case-related criteria are selected). this is easily done by removing lines 240-249 in CRM/Contact/Form/Search/Advanced.php -- that snippet currently defaults to "my cases" if no value is selected. removing it returns to what I think is the normal behavior.

in the case search, i think the boolean options are valid. you're either searching for your own, or for all cases. so I would remove the clear function altogether. and default to "all cases" (current behavior). there's additional ACL stuff already there if the person is only permissioned to search their own cases.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • case search: all/my cases

This forum was archived on 2017-11-26.