Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11315

trigger postProcess hook on inline edit save

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 4.2.6
    • Fix Version/s: 4.2.7
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      postProcess is not getting called when an inline edit form is saved.
      I think this is pretty easy to implement. The issue is that for inline edit we handle the updates, return a json response, and exit – so it doesn't get to the parent postProcess where the hook is called.

      but if we just add: $this->postProcessHook();
      – before the response and exit, within each inline edit form's postProcess function, we achieve what we need.

      for example, in CRM_Contact_Form_Inline_Demographics::postProcess() – I added the above before $response and it correctly passes to the hook.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: