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 CiviReport (Moderator: Dave Greenberg) »
  • Snippets breaking when navigating by page number
Pages: [1]

Author Topic: Snippets breaking when navigating by page number  (Read 394 times)

DaveFF

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 5
  • Developer at Future First
    • Future First
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.34
  • MySQL version: 5.5
  • PHP version: 5.3
Snippets breaking when navigating by page number
June 03, 2014, 08:37:18 am
On our site we have a custom contact tab containing a report snippet, added by a drupal module using the hook civicrm_tabs. When the report contains >50 contacts, the option appears to navigate by page number. When the Go button is clicked, the report breaks out of the snippet, opening the report's own page and forgetting which school it is supposed to be reporting on.

Replicated on 4.4 demo:
  • Go to the report page http://drupal.demo.civicrm.org/civicrm/report/instance/1?reset=1
  • Get that as a snippet http://drupal.demo.civicrm.org/civicrm/report/instance/1?reset=1&section=2&snippet=1
  • Observe the navigation 'Page [1] of 6 [Go]'
  • Type in a different page number or don't, it happens either way. Click [Go] button.
  • Observe that it breaks out of the snippet and takes you to http://drupal.demo.civicrm.org/civicrm/report/instance/1

Have noted, that I can temporarily get the desired functionality by adding '?reset=1&section=2&snippet=1' to the end of the form action attribute using Chrome's 'Inspect element'.

Edit: Have further noted, that the Next > and Last >> nav links break out of the snippet in a similar way.
« Last Edit: June 03, 2014, 08:48:50 am by DaveFF »
Do Not Contact Until extension: https://civicrm.org/extensions/do-not-contact-until
Organisation Name De-duplicator extension: https://civicrm.org/extensions/organisation-name-de-duplicator

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Snippets breaking when navigating by page number

This forum was archived on 2017-11-26.