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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Use &param=xxx&force=1 and $this->_formValues
Pages: [1]

Author Topic: Use &param=xxx&force=1 and $this->_formValues  (Read 1158 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Use &param=xxx&force=1 and $this->_formValues
December 13, 2008, 04:24:32 am
Hi,

On a custom search, using the force=1 get param to go directly to a specific result.


The

        $cid= CRM_Utils_Array::value( 'cid',
                                          $this->_formValues );


Doesn't return anything, even so I have &cid=xxx in the query. Bug or feature ?

X+

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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: Use &param=xxx&force=1 and $this->_formValues
December 13, 2008, 07:42:56 am

Something in the GET params (cid=XXX) does not make it into formValues automatically. You will need to force it into formValues

check: CRM/Contact/Form/Search/Custom/Sample.php (in trunk, line 46) for an example of how to push a GET variable into formValue
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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Use &param=xxx&force=1 and $this->_formValues

This forum was archived on 2017-11-26.