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
a3e6602d
Commit
a3e6602d
authored
6 years ago
by
pupi1985
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow closed and hidden questions to be deleted with one click
parent
1a9496fd
dev
…
3113-openbar-authentification
3241-delete-all-the-question
3242-password-removed
3414-no-change-mail
3414-stop-mail-send
main
No related merge requests found
Hide 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 @
a3e6602d
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
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