Bulk creation: fix private status based on the first form
This commit is contained in:
parent
5d8de7587d
commit
25e90d8d75
4 changed files with 16 additions and 4 deletions
application/front/controller/admin
|
@ -169,7 +169,11 @@ class ShaarePublishController extends ShaarliAdminController
|
|||
$title = $request->getParam('title');
|
||||
$description = $request->getParam('description');
|
||||
$tags = $request->getParam('tags');
|
||||
$private = filter_var($request->getParam('private'), FILTER_VALIDATE_BOOLEAN);
|
||||
if ($request->getParam('private') !== null) {
|
||||
$private = filter_var($request->getParam('private'), FILTER_VALIDATE_BOOLEAN);
|
||||
} else {
|
||||
$private = $this->container->conf->get('privacy.default_private_links', false);
|
||||
}
|
||||
|
||||
// If this is an HTTP(S) link, we try go get the page to extract
|
||||
// the title (otherwise we will to straight to the edit form.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue