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) »
  • default country/state not set in billing block
Pages: [1]

Author Topic: default country/state not set in billing block  (Read 643 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+
default country/state not set in billing block
March 19, 2010, 07:15:55 am
The default country set in global config is not being set in the contrib page billing block.
The problem seems to originate in Contribute/Form/Contribution/Main.php
The default country is not retrieved correctly and added to $this->_defaults, and consequently when "fixAllStateSelects" is called around line 267 there is no default value passed.

Tracing it back, I think what's happening is that line 162 is where the address defaults are set, but these are all retrieved from the profile -- they don't retrieve from the global default. I think they should first retrieve from global, and then be overwritten if profile defaults are defined. And in the case of the billing values, they are not set by the profile anyway.
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 CiviContribute (Moderator: Donald Lobo) »
  • default country/state not set in billing block

This forum was archived on 2017-11-26.