The view doesn't seem to work properly when there are no messages, we're seeing a single empty entry. We'd like to be able to use the empty text that we specify in the view.

We are working with Views 3.

This may be a design decision form this module, or it may be to do with VBO?

We're also not seeing the $empty variable in the template, so that's adding an additional problem for us.

We can override the behaviour in the template, so we have a solution that works for us, but it's not very clean, so raising this as an issue for anyone else who may be seeing the same problem.

Here's the template snippet for what it's worth, certainly not a great solution.

// Privatemsg views doesn't process empty views properly, fixing it here in the template.
if (!$view->result[0]->mid) {
  unset ($rows);
  $empty = $view->empty['area']->options['content'];
}

Comments

crea’s picture

Category: bug » support
Status: Active » Fixed

Views 3 is not supported. Please read project page before creating issues. Thanks.

muhleder’s picture

Status: Fixed » Closed (won't fix)

I did read the project page, and I also read this comment which indicated that Views 3 might work.

http://drupal.org/node/781054#comment-3452894

We have found that the module does work with Views 3 except for this issue, I haven't had a chance to test whether this issue also exists with Views 2.

Closing as won't fix since the bug still exists, this may help others who run into the same problem and wish to provide a patch.

crea’s picture

The bug is something that was supposed to work, but doesn't. This wasn't supposed to work, so is not a bug.
There's already a feature request for that #781054: Views 3.x & Privatemsg 2.x compatibility

crea’s picture

Status: Closed (won't fix) » Fixed

Status: Fixed » Closed (fixed)

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