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..

CommentFileSizeAuthor
#2 missing-pager-1382076-1.patch452 byteslsdoc77

Comments

berdir’s picture

yep, 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.

lsdoc77’s picture

StatusFileSize
new452 bytes

The 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..

berdir’s picture

Status: Active » Needs review

I've seen this problem before. It's not even necessary to have a visible pager, a call to theme('pager') somewhere is enough.

berdir’s picture

#2: missing-pager-1382076-1.patch queued for re-testing.

berdir’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev

Oh, wrong version. There are no tests in 7.x-1.0-alpha1 ;)

berdir’s picture

#2: missing-pager-1382076-1.patch queued for re-testing.

berdir’s picture

Status: Needs review » Fixed

Fixed coding style, added a comment and commited.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.