diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-12-10 23:37:56 -0600 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-12-10 23:37:56 -0600 |
commit | 90b761ec2097be1c1221fff47f362b43d9de5a6d (patch) | |
tree | 07ec6fcde75c703dc372a123c1f592e714fe5856 /scripts | |
parent | e9360598a8ae2e98376670ef80dcfeeb3072dfc4 (diff) | |
download | brdo-90b761ec2097be1c1221fff47f362b43d9de5a6d.tar.gz brdo-90b761ec2097be1c1221fff47f362b43d9de5a6d.tar.bz2 |
Issue #1356358 by BTMash: Fixed Unknown variable in generate-d7-content.sh causes PDOException.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/generate-d7-content.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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"; |