Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-12718

Hard Deleting Post does not Decrease Post Count

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-b4
    • Fix Version/s: 3.1.0-RC3
    • Component/s: Posting
    • Labels:
      None
    • Environment:
      PHP 5.4.27, MySQL 5.5.31-MariaDB

      Description

      When hard deleting a post from viewtopic page poster's post count does not decrease automatically. Soft deleting does decrease post count properly.

      EDIT: After further testing this bug only affects the first post of the topic. If deleting the post deletes the topic post count is not decreased.

        Issue Links

          Activity

          Hide
          nickvergessen Joas Schilling added a comment -

          Did it decrease in 3.0?

          Show
          nickvergessen Joas Schilling added a comment - Did it decrease in 3.0?
          Hide
          Patrick W. Patrick W. [X] (Inactive) added a comment -

          It has on all the boards I have ran.

          Show
          Patrick W. Patrick W. [X] (Inactive) added a comment - It has on all the boards I have ran.
          Hide
          dhruv.goel92 Dhruv Goel added a comment -

          My suggestion would be to change remove_topic_from_statistic( ) a little bit and use it for post_mode = 'delete_topic' which does not decrease user_post_count. Only Minor modification is required in the current function. Let me know if anyone has any better ideas, or I will create a patch soon.

          Show
          dhruv.goel92 Dhruv Goel added a comment - My suggestion would be to change remove_topic_from_statistic( ) a little bit and use it for post_mode = 'delete_topic' which does not decrease user_post_count. Only Minor modification is required in the current function. Let me know if anyone has any better ideas, or I will create a patch soon.

            People

            • Assignee:
              dhruv.goel92 Dhruv Goel
              Reporter:
              Patrick W. Patrick W. [X] (Inactive)
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development