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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • exportValues breaks from 4.2.13 to 4.3.1 - help!
Pages: [1]

Author Topic: exportValues breaks from 4.2.13 to 4.3.1 - help!  (Read 527 times)

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
exportValues breaks from 4.2.13 to 4.3.1 - help!
March 27, 2014, 12:03:21 pm
Hi gang,

First up, our install has a lot of custom modules.

Our Drupal-based system has a "dashboard" that some users can log into to add questions to a Drupal webform. Standard tpls & forms.

However, we can no longer add questions, because the $this->controller->exportValues() is resulting postProcessArray ( [qfKey] => bfb1ebe7d1b886253fcedbaf688f02de_1929 ), as opposed to the exploded values that it's meant to be. This works fine in 4.2.13, but not in 4.3.1 (which I'm passing through on my way to 4.4.4).

Help!!! What could be causing this?

Thanks in advance!
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

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: exportValues breaks from 4.2.13 to 4.3.1 - help!
March 27, 2014, 01:33:01 pm

i think exportValues requires the name of the form as a parameter.  might want to search the code base for an example

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

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: exportValues breaks from 4.2.13 to 4.3.1 - help!
March 28, 2014, 02:26:55 pm
Hi Lobo, I'd seen other instances of code where it was used without a parameter, but I will look for one to use in this instance! Thank you
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

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: exportValues breaks from 4.2.13 to 4.3.1 - help!
March 30, 2014, 07:19:29 am
The codebase has examples that use it without a param.

So I'm managing to access the values through $this->controller->_pages['Questions']->_submitValues

Doesn't seem right somehow? Is there a better way?
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

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: exportValues breaks from 4.2.13 to 4.3.1 - help!
April 30, 2014, 11:58:11 am
$params = $this->controller->exportValues($this->_name);^M
die(print_r($params));

Outputs

Array ( [qfKey] => 5d1a3018c7c46959fd5bb3b9ae381ba4_4482 ) 1
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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • exportValues breaks from 4.2.13 to 4.3.1 - help!

This forum was archived on 2017-11-26.