Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Incomplete
-
Affects Version/s: 4.4.4, 4.4.6
-
Fix Version/s: Unscheduled
-
Component/s: CiviReport
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
Forum link: http://forum.civicrm.org/index.php/topic,32952.0.html
On our site we have a custom contact tab containing a report snippet. 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, navigating away from the view contact page where the snippet was being viewed.
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§ion=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§ion=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.