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
ca9aa560
Commit
ca9aa560
authored
Dec 14, 2005
by
Dries
Browse files
- Patch
#40816
by Morbus: fixed bug with assigning news item the correct category.
parent
d40ce217
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/aggregator.module
View file @
ca9aa560
...
...
@@ -729,7 +729,7 @@ function aggregator_save_feed($edit) {
if
(
$edit
[
'title'
])
{
// the feed is being saved, save the categories as well
if
(
$edit
[
'category'
])
{
foreach
(
$edit
[
'category'
]
as
$cid
)
{
foreach
(
$edit
[
'category'
]
as
$cid
=>
$value
)
{
db_query
(
'INSERT INTO {aggregator_category_feed} (fid, cid) VALUES (%d, %d)'
,
$edit
[
'fid'
],
$cid
);
}
}
...
...
modules/aggregator/aggregator.module
View file @
ca9aa560
...
...
@@ -729,7 +729,7 @@ function aggregator_save_feed($edit) {
if
(
$edit
[
'title'
])
{
// the feed is being saved, save the categories as well
if
(
$edit
[
'category'
])
{
foreach
(
$edit
[
'category'
]
as
$cid
)
{
foreach
(
$edit
[
'category'
]
as
$cid
=>
$value
)
{
db_query
(
'INSERT INTO {aggregator_category_feed} (fid, cid) VALUES (%d, %d)'
,
$edit
[
'fid'
],
$cid
);
}
}
...
...
Write
Preview
Markdown
is supported
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