It seems there's tiny bug here.

We have two versions of VB: "VB 1.4" and "VB dev".

flag_views_bookmark_update_prepare() upgrades VB 1.4 to the latest state by running the update functions. The code is:

  for ($version = $vb_schema; $version <= 5102; $version++) {
      $update_function = 'views_bookmark_update_'. $version;
      if (function_exists($update_function)) {

It looks for 'views_bookmark_update_NNN' function whereas these functions were renamed to flag_views_bookmark_update_NNN'.

I'm attaching a patch --but it wasn't tested.

CommentFileSizeAuthor
#2 vb14upgrd6.diff1.7 KBmooffie
vb14upgrd.diff903 bytesmooffie

Comments

mooffie’s picture

Status: Needs review » Fixed

Commited. (I figured it's best to commit this asap so we get feedback from users. That's what beta is for.)

mooffie’s picture

Status: Fixed » Patch (to be ported)
StatusFileSize
new1.7 KB

We need to port this to D6. Here's the patch I propose. Two upgrade functions use Views 1 API, so I masked their names. We could remove them altogether.

quicksketch’s picture

Good call on the function name corrections. Initially I thought I'd use the original update functions, but realized a lot of users will delete Views Bookmark before starting with Flag, so it'd be better to include copies of the updates. I think we should just remove those Views updates entirely. The user will have to do some amount of manual importing of each View anyway from Drupal 5 to 6.

mooffie’s picture

Status: Patch (to be ported) » Fixed

I think we should just remove those Views updates entirely.

OK, I've just done that, for the D6 branch.

(Sort of: I left the function skeletons and just emptied they bodies, but left a note. I didn't want some future explorer to wonder "but I think something is missing here.")

quicksketch’s picture

Rock. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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