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,
));
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | flag-missing-curly-braces-1710302-2.patch | 712 bytes | havran |
Comments
Comment #1
joachim commentedThanks!
Could you possibly upload that as a file attachment rather than paste it in though?
Comment #2
havran commentedHere.
Comment #3
joachim commentedSuper, thanks!
Will commit to 3.x and then 2.x once the monster cataclysm patch gets in.
Comment #5
joachim commentedRebased 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.