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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • What's wrong with return.xxx in a $_GET ?
Pages: [1]

Author Topic: What's wrong with return.xxx in a $_GET ?  (Read 3566 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
What's wrong with return.xxx in a $_GET ?
October 18, 2008, 12:41:08 am
Hi,

The api, accessed via the rest interface, seems to have a problem:

the get parameter ?return.sort_name=1 (for instance) is seen as return_sort_name (as print_r in CRM/Utils/REST.php).

Is it "normal" ? I can't understand why/where it's converted. Any help more than welcome.

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

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: What's wrong with return.xxx in a $_GET ?
October 19, 2008, 03:42:46 pm
I have modified the rest interface to take an extra return[field_name]=1 parameter (you can have as many as you want, of course)
-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: What's wrong with return.xxx in a $_GET ?
October 19, 2008, 04:19:54 pm

can u attach it to the issue. I'll take a look and if changes are backward compatible, will attempt to patch the api fixes release of 2.1 (most likely 2.1.3)

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) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • What's wrong with return.xxx in a $_GET ?

This forum was archived on 2017-11-26.