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

Add paths in xml for FinancialType, Participant & Pledge #24720

Merged
merged 1 commit into from
Oct 15, 2022

Conversation

aydun
Copy link
Contributor

@aydun aydun commented Oct 12, 2022

Overview

Add paths in XML/DAO for FinancialType, Participant & Pledge. This enables SearchKit to add Add, View, Update, Delete link paths automatically

Before

No paths

After

Paths

Technical Details

Comments

#ManchesterSprint

@civibot
Copy link

civibot bot commented Oct 12, 2022

(Standard links)

@civibot civibot bot added the master label Oct 12, 2022
'view' => 'civicrm/contact/view/pledge?id=[id]&cid=[contact_id]&action=view&reset=1',
'update' => 'civicrm/contact/view/pledge?id=[id]&cid=[contact_id]&action=update&reset=1',
'delete' => 'civicrm/contact/view/pledge?id=[id]&cid=[contact_id]&action=delete&reset=1',
'cancel' => 'civicrm/contact/view/pledge?id=[id]&cid=[contact_id]&action=detach&reset=1',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This "cancel" action is nonstandard and doesn't show up in SearchKit. IMO it probably shouldn't because loading that page immediately cancels the pledge with no confirmation!
@aydun on second thought... maybe we shouldn't include this one at all.

@colemanw
Copy link
Member

Good, useful change. Thanks @aydun

@colemanw colemanw merged commit adce871 into civicrm:master Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants