Skip to content

Commit

Permalink
set entries update isdraft to string value false
Browse files Browse the repository at this point in the history
to be able to publish draft entries from dashboard

References #160
  • Loading branch information
ophian committed May 23, 2014
1 parent 13c9b4b commit 14ce11c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/functions_entries.inc.php
Expand Up @@ -1402,6 +1402,8 @@ function serendipity_updertEntry($entry) {
}
}

if (!$entry['isdraft'] || $entry['isdraft'] == 0) $entry['isdraft'] = 'false';

//if (!serendipity_db_bool($entry['isdraft']) && !serendipity_db_bool($_entry['isdraft'])) {
$entry['last_modified'] = time();
//}
Expand Down

2 comments on commit 14ce11c

@bauigel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems, there are some problems with this commit. Entries always get published, even the state of the entry is set to draft.

Please take a look at http://board.s9y.org/viewtopic.php?f=3&t=19936&p=10439649

@ophian
Copy link
Member Author

@ophian ophian commented on 14ce11c May 25, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.
This had to be set more strict, see 3c21bfb
As this all is processing already set entries only, please test again.

Please sign in to comment.