Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-12749

core.submit_post_end add subject to the event data

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.11-RC1
    • 3.1.0-b4
    • Events
    • None

      Currently there is no easy way to get the subject of the post that was just edited. $data contains the old subject, and $subject is not exposed after it is cleaned.

      The hack around this was to implement core.modify_submit_post_data, store the subject in the object, then make use of it in core.submit_post_end, making sure to call truncate_string() again manually.

      The easiest solution would be to add $subject to the core.submit_post_end event.

      Aside: it would be amazing if an event fires with $sql_data before it is executed, giving an extension the ability to modify the data and add new data fields as needed.

            Unassigned Unassigned
            rfdy rfdy [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: