aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/lib
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2013-02-23 08:49:08 -0500
committerCash Costello <cash.costello@gmail.com>2013-02-23 08:49:08 -0500
commit1a2c97886f7335509ed1e1f65aff4464a32e01eb (patch)
tree2ac208c9fdfe59a8be661b6d33af27f7429b02be /mod/blog/lib
parent9bda5425d8a1e33ce42ea11de12918706768c39b (diff)
downloadelgg-1a2c97886f7335509ed1e1f65aff4464a32e01eb.tar.gz
elgg-1a2c97886f7335509ed1e1f65aff4464a32e01eb.tar.bz2
Fixes #5012 drafts are private now
Diffstat (limited to 'mod/blog/lib')
-rw-r--r--mod/blog/lib/blog.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/blog/lib/blog.php b/mod/blog/lib/blog.php
index 3c71dfbab..8f15bd347 100644
--- a/mod/blog/lib/blog.php
+++ b/mod/blog/lib/blog.php
@@ -363,6 +363,10 @@ function blog_prepare_form_vars($post = NULL, $revision = NULL) {
$values[$field] = $post->$field;
}
}
+
+ if ($post->status == 'draft') {
+ $values['access_id'] = $post->future_access;
+ }
}
if (elgg_is_sticky_form('blog')) {