Closed (fixed)
Project:
Node form columns
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2011 at 23:27 UTC
Updated:
31 Mar 2014 at 05:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
devuo commentedApparently the module was relying on a variable that wasn't available (core changes probably) onto the passed Array to the implementation of hook_node_type_delete and hook_node_type_update. The patch I'm submitting solves the issue by changing the variable name to another, that does exist, on the passed array.
The problematic variable $old_type was swapped for $orig_type.
The patch was generated relative to the module folder, so it should be applied at the root folder of the module.
Comment #2
asherry commentedThis was actually fixed in http://drupalcode.org/project/nodeformcols.git/commit/aa3354bef5bb816201...
It wasn't a problem with orig_type being swapped for old_type though, those are completely different values. orig_type is meant to be the content type machine name that is saved originally on insert.
There is another drupal core issue where this is being overridden in a default function, that's here:
https://drupal.org/node/2219177
The fix for this was to change it to $info->type, as whatever the current machine name is for the content type we want to delete the associated variable.