I've noticed a problem when updating blockreference module from 1.x to 2.7 (or earlier). When using table prefixes (as I do in my projects), the update script fails (blockreference_update_7200 function).

I've solved the problem by changing the code in blockreference.install in line 50 from:
FROM {$table_name}

to:
FROM {{$table_name}}

Maybe someone can confirm this?

CommentFileSizeAuthor
#3 update-script-2956901-3.patch418 bytesalex_optim

Comments

Acer82 created an issue. See original summary.

Acer82’s picture

Issue summary: View changes
alex_optim’s picture

Status: Active » Needs review
StatusFileSize
new418 bytes

Thank you for your work Acer82. Your solution is correct.
I created a patch.

markie’s picture

Status: Needs review » Reviewed & tested by the community

Patch 3 works for me. Thanks!

pifagor’s picture

pifagor’s picture

Version: 7.x-2.7 » 7.x-2.x-dev

  • pifagor committed 44fbcc8 on 7.x-2.x authored by alex_optim
    Issue #2956901 by alex_optim, Acer82, markie, pifagor: Bug in update...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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