Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-20347 Fatal error on delete participant record with related contr… #10061

Merged
merged 1 commit into from
Mar 29, 2017

Conversation

eileenmcnaughton
Copy link
Contributor

…ibution

@jitendrapurohit can you review this related issue? See if you think there is any issue with this change

@jitendrapurohit
Copy link
Contributor

shouldn't we add VIEW action here? Currently contribution section is not loaded in View Participant page after this change.

@eileenmcnaughton
Copy link
Contributor Author

This is within the 'edit' function

  /**
   * called when action is update or new.
   *
   * @return null
   */
  public function edit() {
    // set https for offline cc transaction
    $mode = CRM_Utils_Request::retrieve('mode', 'String', $this);
    if ($mode == 'test' || $mode == 'live') {
      CRM_Utils_System::redirectToSSL();
    }

called per


    if ($this->_action & CRM_Core_Action::VIEW) {
      $this->view();
    }
    elseif ($this->_action & (CRM_Core_Action::UPDATE |
        CRM_Core_Action::ADD |
        CRM_Core_Action::DELETE
      )
    ) {
      $this->edit();
    }
    else {
      $this->browse();
    }

I do wonder if it is possible to load that contribution search results by snippet - which would be much better from a code POV I think

@eileenmcnaughton
Copy link
Contributor Author

@jitendrapurohit @pradpnayak - per suggestion from @pradpnayak on the other JIRA (or somewhere) - this works & since I had hit the same error in a third place (contact user dashboard) I think I'd rather fix it this way, although longer term it would be better to have actions on all forms that reflect their 'gettiness' I think

@eileenmcnaughton
Copy link
Contributor Author

I'm going to set this to 'merge on pass' since it is a fatal in the rc so should be fixed ASAP & is a fix suggested by @pradpnayak - so I am effectively the reviewer on it

@eileenmcnaughton eileenmcnaughton merged commit 734528f into civicrm:4.7.18-rc Mar 29, 2017
@eileenmcnaughton eileenmcnaughton deleted the fatal branch March 29, 2017 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants