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

Remove obsolete function formatWikiURL #17726

Merged
merged 2 commits into from
Jul 1, 2020
Merged

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Jul 1, 2020

Overview

Remove obsolete, unused function to create links to our long-dead wiki.

Before

Function exists

After

Gone

Technical Details

It was actually used in 1 place, but the usage made no sense to me, and I'm not sure if the code was even reachable.

Comments

@demeritcowboy would you mind taking a look at the case report to see if the function was as misapplied as I think it was?

@civibot civibot bot added the master label Jul 1, 2020
@civibot
Copy link

civibot bot commented Jul 1, 2020

(Standard links)

@demeritcowboy
Copy link
Contributor

Sure will take a look.

@demeritcowboy
Copy link
Contributor

  • Currently, a custom field of type link for an activity comes out looking like this if you do print report on manage case:

printreport

  • When viewing the case activity it looks like this:

caseactivityview

  • and clicking the link goes to: /civicrm/case/activity/<a (It seems ok for non-case activities.)

  • With the patch, it comes out looking like this on print report:

printreport-after

  • And like this on the view case activity:

caseactivityview-after

  • So it's an improvement and in terms of removing the function that seems right.

  • And then beyond that I'd say it's out of scope but there should probably be a purify somewhere, and/or just don't call CRM_Core_BAO_CustomField::displayValue() for type Link, which is where the value ends up getting link-ified. The getCustomData() and getActivityTypeCustomSQL() functions are weird, so it could end up being a mini-project to work through them.

@colemanw
Copy link
Member Author

colemanw commented Jul 1, 2020

Thanks. Sounds like this is good to go, and as always, there's more to be done...

@colemanw colemanw merged commit 9602aa6 into civicrm:master Jul 1, 2020
@colemanw colemanw deleted the noWiki branch September 12, 2020 02:50
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