1
0

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:
Garvin Hicking
2014-08-08 14:23:19 +02:00
parent f9bddffc3e
commit 9b89c3d815
3 changed files with 13 additions and 0 deletions

View File

@ -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!
);
}