Skip to content
Snippets Groups Projects
Closed CiviGrant - Can't edit existing grants following move to Core Extension
  • View options
  • CiviGrant - Can't edit existing grants following move to Core Extension

  • View options
  • Closed Issue created by Matt Trim

    Overview

    When trying to edit an existing grant in CiviCRM of Civi versions 5.47.0 onwards, I am greeted with an error message.

    Reproduction steps

    Editing a Grant from a Contact Record:

    1. Find any existing contact record that has an existing Grant, and navigate to the Contact Record -> Grants tab.
    2. Press the "Edit" button.
    3. Receive "Network Error Unable to reach the server. Please refresh this page in your browser and try again." status bounce message
    4. Look at Watchdog / Error logs:
    TypeError: Argument 2 passed to CRM_Grant_BAO_Grant::retrieve() must be of the type array, null given, called in /buildkit/build/user-prompts/vendor/civicrm/civicrm-core/ext/civigrant/CRM/Grant/Form/Grant.php on line 106 in CRM_Grant_BAO_Grant::retrieve() (line 75 of /buildkit/build/test/vendor/civicrm/civicrm-core/ext/civigrant/CRM/Grant/BAO/Grant.php) 

    Editing a Grant from the "Find Grants" screen:

    1. Navigate to the "Find Grants" screen
    2. Press "Search"
    3. Press "Edit" on any of the displayed Grants
    4. Note the same behaviour presents as above.

    Current behaviour

    TypeError: Argument 2 passed to CRM_Grant_BAO_Grant::retrieve() must be of the type array, null given, called in /buildkit/build/user-prompts/vendor/civicrm/civicrm-core/ext/civigrant/CRM/Grant/Form/Grant.php on line 106 in CRM_Grant_BAO_Grant::retrieve() (line 75 of /buildkit/build/test/vendor/civicrm/civicrm-core/ext/civigrant/CRM/Grant/BAO/Grant.php) 

    Expected behaviour

    I should be able to edit a grant.

    Comments

    Pradeep has raised a Pull Request that addresses this: https://github.com/civicrm/civicrm-core/pull/22947

    OR

    https://github.com/civicrm/civicrm-core/pull/22948

    Edited by Matt Trim

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading