From 90b761ec2097be1c1221fff47f362b43d9de5a6d Mon Sep 17 00:00:00 2001 From: webchick Date: Sat, 10 Dec 2011 23:37:56 -0600 Subject: Issue #1356358 by BTMash: Fixed Unknown variable in generate-d7-content.sh causes PDOException. --- scripts/generate-d7-content.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/generate-d7-content.sh b/scripts/generate-d7-content.sh index 2ad9e5286..364a25c92 100644 --- a/scripts/generate-d7-content.sh +++ b/scripts/generate-d7-content.sh @@ -269,11 +269,14 @@ if (module_exists('poll')) { } // Test that upgrade works even on a bundle whose parent module was disabled. +// This is simulated by creating an existing content type and changing the +// bundle to another type through direct database update queries. +$node_type = 'broken'; $uid = 6; $user = user_load($uid); $node = new stdClass(); $node->uid = $uid; -$node->type = 'broken'; +$node->type = 'article'; $body_text = str_repeat("node body ($node_type) - 37", 100); $node->sticky = 0; $node->title = "node title 24"; -- cgit v1.2.3