I have a website for a customer where I created a user (let's say admin2) for the customer to administer his wbsite (it's a different user the site-wide administration user which I control).
When I as administrator log in and go to admin/people/newsletter page everything is ok.
But when admin2 logs in and navigates to admin/people/newsletter page the list that shows the subscribed users doesn't show the pager at the end.
I changed the code in includes/simplenews.admin.inc file , in simplenews_subscription_list_form() function (line : 1169) from
<?php
$form['pager'] = array('#theme' => 'pager');
?>
to
<?php
$form['custom_pager'] = array(
'#markup' => theme('pager',array())
);
?>
and now the pager is showing up on admin's2 admin/people/newsletter page.
It seems like the pager function does not output based on either the role or the theme ( I use garland as administration theme for site administrator and omega subtheme for admin2 interface ).
Let me know if somebody checks about it , so that I can close this issue..
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | missing-pager-1382076-1.patch | 452 bytes | lsdoc77 |
Comments
Comment #1
berdiryep, makes sense, please provide a patch for this.
The problem is that if there is another pager_query in between (e.g. in a block with a view or so), the pager gets assigned to different query and gets messed up.
Comment #2
lsdoc77 commentedThe truth is that I don't see any other pager in this page.. It still seems a little bit strange to me..?
Anyway I upload the patch..
Comment #3
berdirI've seen this problem before. It's not even necessary to have a visible pager, a call to theme('pager') somewhere is enough.
Comment #4
berdir#2: missing-pager-1382076-1.patch queued for re-testing.
Comment #5
berdirOh, wrong version. There are no tests in 7.x-1.0-alpha1 ;)
Comment #6
berdir#2: missing-pager-1382076-1.patch queued for re-testing.
Comment #7
berdirFixed coding style, added a comment and commited.