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 CiviContribute (Moderator: Donald Lobo) »
  • Bug: Can't unselect Include Profiles
Pages: [1]

Author Topic: Bug: Can't unselect Include Profiles  (Read 2270 times)

peta

  • Guest
Bug: Can't unselect Include Profiles
June 30, 2008, 05:58:56 pm
Hi

I'm not exactly sure if this is the best place to post this as my problem should be called "Can't UNSELECT Include Profiles".   :) I'm using Joomla 1.5.3 / CiviCRM 2.0.4 and I know that this combination is not officially supported yet. 

I am editing a Contribution Page in CiviContribute, Manage Contribution Pages, Configure Contribution Pages, Include Profiles. If I attempt to deselect a profile, (ie have no profile selected), either the top of page or bottom of page profile and save, the save is not retained.  When I go into Include Profiles again, the previous selection is still there.

Peta

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Bug: Can't unselect Include Profiles
June 30, 2008, 06:32:22 pm

can you try to reproduce the issue on our demo server: http://demo.drupal.civicrm.org/. I could not reproduce it on the supported versions of joomla/drupal.

if you can reproduce it on the demo server, please file an issue

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

peta

  • Guest
Re: Bug: Can't unselect Include Profiles
June 30, 2008, 07:54:56 pm
Hi
I would be happy to try to reproduce the problem on drupal demo, however after creating an account, logging in, changing my password etc I get "access denied" for all selections.

Peta

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Bug: Can't unselect Include Profiles
June 30, 2008, 08:12:29 pm

argh. sorry, u need to goto http://drupal.demo.civicrm.org/

and use demo/demo as the username / password

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

peta

  • Guest
Re: Bug: Can't unselect Include Profiles
June 30, 2008, 08:38:20 pm
 :) That's better. From a quick test, it's working ok in your drupal demo.  I was wondering where these include profile settings get saved in the database - is it in civicrm_uf_join? And is the field uf_group_id ???
I'm not so good at reading the code. If I can be sure what field/table should be changed, I can observe what is happening in my database.

Thank you
Peta

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Bug: Can't unselect Include Profiles
June 30, 2008, 09:47:28 pm

yes the table and fields are as you've said :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Bug: Can't unselect Include Profiles
August 06, 2008, 06:17:43 pm
There is a bug here - confirmed on the demo site:

Summary: You cannot have a profile top appear on the bottom of the page without having a profile appear on the top.

Steps to reproduce:

1) Go to Include Profiles on a Contribution page

2) Select a Profile to appear on the bottom of the page (the demo has only Name and Address); select nothing for the top.

3) Save

4) go back to Include Profiles - you'll see the profile appears on the top, not the bottom.

Summary: It's impossible to have a profile appear on the bottom of the page only. Bug.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Bug: Can't unselect Include Profiles
August 06, 2008, 06:26:55 pm

This has been fixed in 2.1

You can try it out on http://sandbox.civicrm.org/ and see if it does work :)

If you need this for 2.0, you will need to look into the code and figure out the sections you need to backport. If you hop on IRC, we can help you out with where to look/start etc: http://embed.mibbit.com/?server=irc.freenode.net&channel=%23civicrm&forcePrompt=true

You need to be php savvy to backport a fix

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Bug: Can't unselect Include Profiles
August 07, 2008, 08:36:11 am
Thanks, Lobo - I fear that I'm not PHP-savvy enough to backport a fix, and I wouldn't want to waste anybody's time. Frankly, I'm thankful I've gotten as far as I have, no small thanks to the community.

It's a shame that 2.1 isn't Drupal 5-compatible - there are several modules I use that haven't yet been ported to 6, so I'm stuck.

If you have any other ideas (i.e., a replacement script), that would be great - if you think it's a good idea for me to hop onto the IRC, I'm game. In any event, thanks much and keep up the great work!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Bug: Can't unselect Include Profiles
August 07, 2008, 04:46:59 pm

This seemed a pretty bad bug to be kep outstanding in 2.0. I ported the fix back to 2.0 and will be part of the next release, 2.0.6 in a week or so

You can patch you code by seeing the diff here:

http://fisheye.civicrm.org/browse/CiviCRM/branches/v2.0/CRM/Core/BAO/UFJoin.php?r1=14370&r2=16526

Its a simple patch to one file and you can potentially apply it manually. If you find it a bit complex, you might want to wait for the 2.0.6 release

lobo


A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Bug: Can't unselect Include Profiles

This forum was archived on 2017-11-26.