Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
38eef18e
Commit
38eef18e
authored
Apr 08, 2005
by
Dries
Browse files
- Patch
#19615
by chx: fixed problem forum container getting lets when editing a forum.
parent
0f41706a
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/forum.module
View file @
38eef18e
...
...
@@ -193,6 +193,14 @@ function forum_form_forum($edit = array()) {
function
_forum_parent_select
(
$tid
,
$title
,
$name
)
{
$parents
=
taxonomy_get_parents
(
$tid
);
if
(
$parents
)
{
$parent
=
array_shift
(
$parents
);
$parent
=
$parent
->
tid
;
}
else
{
$parent
=
0
;
}
$children
=
taxonomy_get_tree
(
_forum_get_vid
,
$tid
);
// A term can't be the child of itself, nor of its children.
...
...
@@ -211,11 +219,7 @@ function _forum_parent_select($tid, $title, $name) {
}
}
if
(
!
$parents
)
{
$parents
=
0
;
}
return
form_select
(
$title
,
$name
,
$parents
,
$options
,
NULL
,
0
,
FALSE
,
TRUE
);
return
form_select
(
$title
,
$name
,
$parent
,
$options
,
NULL
,
0
,
FALSE
,
TRUE
);
}
/**
...
...
modules/forum/forum.module
View file @
38eef18e
...
...
@@ -193,6 +193,14 @@ function forum_form_forum($edit = array()) {
function
_forum_parent_select
(
$tid
,
$title
,
$name
)
{
$parents
=
taxonomy_get_parents
(
$tid
);
if
(
$parents
)
{
$parent
=
array_shift
(
$parents
);
$parent
=
$parent
->
tid
;
}
else
{
$parent
=
0
;
}
$children
=
taxonomy_get_tree
(
_forum_get_vid
,
$tid
);
// A term can't be the child of itself, nor of its children.
...
...
@@ -211,11 +219,7 @@ function _forum_parent_select($tid, $title, $name) {
}
}
if
(
!
$parents
)
{
$parents
=
0
;
}
return
form_select
(
$title
,
$name
,
$parents
,
$options
,
NULL
,
0
,
FALSE
,
TRUE
);
return
form_select
(
$title
,
$name
,
$parent
,
$options
,
NULL
,
0
,
FALSE
,
TRUE
);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment