Another stab at fixing Issue #201
When no categories are delivered to serendipity_updertEntry this can mean two things: - categories need to be un-assigned - categories where not addressed/fetched/passed to the function [see include/admin/overview.inc.php for publishing a post! Or plugins like freetag, using serendipity_updertEntry] To address this a new serendipity[had_categories] is added to the backend template, which can be checked for. Feedback appreciated!
This commit is contained in:
@ -44,7 +44,9 @@ switch($serendipity['GET']['adminAction']) {
|
||||
'allow_comments' => $serendipity['POST']['allow_comments'],
|
||||
'moderate_comments' => $serendipity['POST']['moderate_comments'],
|
||||
'exflag' => (!empty($serendipity['POST']['extended']) ? true : false),
|
||||
'had_categories' => $serendipity['POST']['had_categories']
|
||||
// Messing with other attributes causes problems when entry is saved
|
||||
// Attributes need to explicitly matched/addressed in serendipity_updertEntry!
|
||||
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user