You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click Grants menu » New Grant. Note how the fields added by this extension (i.e. batch selector, exposed financial type field) appear correctly.
Click Add New Grant from the Grants tab of a contact. Again, fields appear correctly.
Now, open a contact, view their Activities tab, THEN click Add New Grant from the Grants tab. Note how the fields no longer appear.
The reason is in the JS in "GrantExtra.tpl". It makes multiple references to $('#status_id'). While that SHOULD be a unique identifier, the activity tab loads its own #status_id selector, so that takes precedence, breaking the JS.
I patched my own version, but I also broke out the JS into its own file, making this harder to review. If you want to patch the same bug, just replace all references in the JS in GrantExtra.tpl from $("#status_id") to $("#status_id[data-api-entity='Grant']").
The text was updated successfully, but these errors were encountered:
Steps to replicate:
The reason is in the JS in "GrantExtra.tpl". It makes multiple references to
$('#status_id')
. While that SHOULD be a unique identifier, the activity tab loads its own#status_id
selector, so that takes precedence, breaking the JS.I patched my own version, but I also broke out the JS into its own file, making this harder to review. If you want to patch the same bug, just replace all references in the JS in GrantExtra.tpl from
$("#status_id")
to$("#status_id[data-api-entity='Grant']")
.The text was updated successfully, but these errors were encountered: