Here is patch:

# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- HEAD
+++ Modified In Working Tree
@@ -922,7 +922,7 @@
 function flag_field_attach_delete_bundle($entity_type, $bundle, $instances) {
   // This query can't use db_delete() because that doesn't support a
   // subquery: see http://drupal.org/node/1267508.
-  db_query("DELETE FROM {flag_types} WHERE type = :bundle AND fid IN (SELECT fid FROM flags WHERE content_type = :entity_type)", array(
+  db_query("DELETE FROM {flag_types} WHERE type = :bundle AND fid IN (SELECT fid FROM {flags} WHERE content_type = :entity_type)", array(
     ':bundle' => $bundle,
     ':entity_type' => $entity_type,
   ));
CommentFileSizeAuthor
#2 flag-missing-curly-braces-1710302-2.patch712 byteshavran

Comments

joachim’s picture

Version: 7.x-2.0-beta8 » 7.x-2.x-dev
Status: Needs review » Needs work

Thanks!

Could you possibly upload that as a file attachment rather than paste it in though?

havran’s picture

StatusFileSize
new712 bytes

Here.

joachim’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev
Status: Needs work » Reviewed & tested by the community

Super, thanks!

Will commit to 3.x and then 2.x once the monster cataclysm patch gets in.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, flag-missing-curly-braces-1710302-2.patch, failed testing.

joachim’s picture

Status: Needs work » Fixed

Rebased my branch anyway, as this makes backporting simpler.

> # This patch file was generated by NetBeans IDE

Just for future reference -- NetBeans does not make a proper patch file :/

Committed to both D7 branches.

Issue #1710302 by havran: Fixed missing curly braces in query.

Status: Fixed » Closed (fixed)

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