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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • unexpected message after pressing Cancel on editing profile
Pages: [1]

Author Topic: unexpected message after pressing Cancel on editing profile  (Read 545 times)

karenann

  • I post occasionally
  • **
  • Posts: 110
  • Karma: 2
  • CiviCRM version: 4.7.3
  • CMS version: Joomla 3.4.8
  • MySQL version: 5.5.48-cll
  • PHP version: 5.4.41
unexpected message after pressing Cancel on editing profile
July 01, 2014, 06:03:18 pm
"No fields in this Profile have been configured as searchable. Ask the site administrator to check the Profile setup."
I have a menu item for the user to be able to edit their address etc. If they make a change and press Save, all is good.
If the hit Cancel then they get this message i would not expect to see.
Any suggestions on a work around so that they do not get this message?

karenann

  • I post occasionally
  • **
  • Posts: 110
  • Karma: 2
  • CiviCRM version: 4.7.3
  • CMS version: Joomla 3.4.8
  • MySQL version: 5.5.48-cll
  • PHP version: 5.4.41
Re: unexpected message after pressing Cancel on editing profile
July 10, 2014, 10:44:56 am
Should i log this as a bug?

JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
Re: unexpected message after pressing Cancel on editing profile
July 28, 2014, 05:33:27 am
You should probably just set one of the fields to be searchable. Other than that, you probably shouldn't be showing warnings and errors on a production site anyway.
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: unexpected message after pressing Cancel on editing profile
July 28, 2014, 06:34:38 am
I think this happens because by default a cancel redirects you to the form that you can use to search via a profile (for whatever reason).

I presume you are at a URL that looks like this: http://drupal.demo.civicrm.org/civicrm/profile/create?gid=1&reset=1 or this http://drupal.demo.civicrm.org/civicrm/profile/edit?gid=1&reset=1&id=201

Hitting cancel takes you here: http://drupal.demo.civicrm.org/civicrm/profile?reset=1&gid=1. I agree this isn't an amazing place for it to redirect you to (though not sure where a better place is - maybe the same form as it was when you first saw it).

In advanced settings for a profile e.g. on this page, http://drupal.demo.civicrm.org/civicrm/admin/uf/group/update?action=update&id=1&context=group you should see a 'Cancel Redirect URL' field that you can use to override where to go when they hit cancel, which should stop you from seeing this error.

You could override it so that hitting cancel took you back to where you were if you were using create mode i.e.http://drupal.demo.civicrm.org/civicrm/profile/ceate?reset=1&gid=1 or in edit mode http://drupal.demo.civicrm.org/civicrm/profile/edit?gid=1 (without reset=1 in this case).

You will have to replace the gid with the id of your profile.

I would say - yes - this probably is a bug, and I would file a bug report so that it can get fixed. Not 100% that the above suggestion is sensible default for the profile but we can work that out later. Can you pelase reference this post to the report, and visa versa when you file the issue.

Thanks :)
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • unexpected message after pressing Cancel on editing profile

This forum was archived on 2017-11-26.