Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
cf38e59c
Unverified
Commit
cf38e59c
authored
Dec 04, 2018
by
Scott
Committed by
GitHub
Dec 04, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #670 from pupi1985/patch-116
Allow closed and hidden questions to be deleted with one click
parents
5a8ec779
a3e6602d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
question-view.php
qa-include/pages/question-view.php
+5
-0
No files found.
qa-include/pages/question-view.php
View file @
cf38e59c
...
...
@@ -220,6 +220,11 @@ function qa_page_q_post_rules($post, $parentpost = null, $siblingposts = null, $
if
(
isset
(
$childposts
))
{
foreach
(
$childposts
as
$childpost
)
{
// Skip the child post if it is a note
if
(
$childpost
[
'basetype'
]
===
'N'
)
{
continue
;
}
if
(
$childpost
[
'parentid'
]
==
$post
[
'postid'
])
{
// this post has comments
$rules
[
'deleteable'
]
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment