Draggable Views throws several notices if the view is showing a fixed number of items (i.e. no real pager).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dalin’s picture

Status: Active » Needs review
FileSize
910 bytes
dalin’s picture

Status: Needs review » Needs work
dalin’s picture

Status: Needs work » Needs review
FileSize
3.15 KB

Here's a new one that fixes a few more places and uses $view->use_pager().

But everything that touches pagers probably needs to be rewritten to use Views' new pager system anyway.

dalin’s picture

Here's another one that gets around the fact that all of the futzing with the pager globals is currently broken (due to Views having a new paradigm for pagers now).

klonos’s picture

Title: Notice: Undefined index: id in draggableviews_views_pre_execute(), line 252/258, draggableviews.module » Notice: Undefined index: id in draggableviews_views_pre_execute(), line 252, draggableviews.module

...coming from #1198810: not working with attachment display. The errors are:

Notice: Undefined index: id in draggableviews_views_pre_execute() (line 252 of /sites/all/modules/draggableviews/draggableviews.module)
Notice: Undefined index: id in draggableviews_views_pre_execute() (line 258 of /sites/all/modules/draggableviews/draggableviews.module)

I confirm that the patch in #4 above fixes the error.

klonos’s picture

Title: Notice: Undefined index: id » Notice: Undefined index: id in draggableviews_views_pre_execute(), line 252/258, draggableviews.module

...line 258 too.

medden’s picture

Title: Notice: Undefined index: id in draggableviews_views_pre_execute(), line 252, draggableviews.module » Notice: Undefined index: id in draggableviews_views_pre_execute(), line 252/258, draggableviews.module

I can confirm this patch (#4) worked for me and resolved the errors I was getting.

rkeppner’s picture

Status: Needs review » Reviewed & tested by the community

I can also confirm that patch (#4) worked to correct the error messages I was seeing.

mesr01’s picture

Thanks dalin!

ygerasimov’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thank you @dalin!

Status: Fixed » Closed (fixed)

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