Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443915
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3443915
Commits
90b761ec
Commit
90b761ec
authored
13 years ago
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1356358
by BTMash: Fixed Unknown variable in generate-d7-content.sh causes PDOException.
parent
e9360598
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/generate-d7-content.sh
+4
-1
4 additions, 1 deletion
scripts/generate-d7-content.sh
with
4 additions
and
1 deletion
scripts/generate-d7-content.sh
+
4
−
1
View file @
90b761ec
...
@@ -269,11 +269,14 @@
...
@@ -269,11 +269,14 @@
}
}
// Test that upgrade works even on a bundle whose parent module was disabled.
// 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
;
$uid
=
6
;
$user
=
user_load
(
$uid
)
;
$user
=
user_load
(
$uid
)
;
$node
=
new stdClass
()
;
$node
=
new stdClass
()
;
$node
->uid
=
$uid
;
$node
->uid
=
$uid
;
$node
->type
=
'
broken
'
;
$node
->type
=
'
article
'
;
$body_text
=
str_repeat
(
"node body (
$node_type
) - 37"
, 100
)
;
$body_text
=
str_repeat
(
"node body (
$node_type
) - 37"
, 100
)
;
$node
->sticky
=
0
;
$node
->sticky
=
0
;
$node
->title
=
"node title 24"
;
$node
->title
=
"node title 24"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment