[contributions:puregin] /modules/bookimport save_node.php
User: puregin Branch: HEAD Date: Sat, 28 Jan 2006 07:27:10 +0000 Modified files: /modules/bookimport save_node.php Log message: - wrapped 'foreach()' loop in make_links() in a test to ensure array is nonempty (fixes bug http://drupal.org/node/46708) - deal with bug where creating a new book containing a 'new node' - one with no nid - confuses 'make_links()'. This happens because the new node has no original nid; thus there is an entry [] => new_id in the array $new_nid. But when we look up the parent of a root node, it is empty, and when we look up the corresponding new nid, we get the new nid of the new node, rather than the root node. - renamed utility functions to avoid name collisions - refactored function definitions to remove $new_nid and $parent_of params - moved global arrays $new_nid and $parent_of into this file, since these are used here and only here. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/bookimport/save_no...
participants (1)
-
drupal-cvs@drupal.org