CiviGrant - Can't edit existing grants following move to Core Extension
View options
- Truncate descriptions
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:
- Find any existing contact record that has an existing Grant, and navigate to the Contact Record -> Grants tab.
- Press the "Edit" button.
- Receive "Network Error Unable to reach the server. Please refresh this page in your browser and try again." status bounce message
- 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:
- Navigate to the "Find Grants" screen
- Press "Search"
- Press "Edit" on any of the displayed Grants
- 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
- Show labels
- Show closed items