Skip to content

Commit

Permalink
Merge pull request #15597 from colemanw/apiPath
Browse files Browse the repository at this point in the history
Update api3 explorer url path for consistency
  • Loading branch information
seamuslee001 authored Oct 24, 2019
2 parents 97a7308 + 8cba30c commit f96eb23
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CRM/Core/xml/Menu/Misc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
</item>
<item>
<path>civicrm/api</path>
<page_callback>CRM_Core_Page_Redirect</page_callback>
<page_arguments>url=civicrm/api3</page_arguments>
<access_arguments>access CiviCRM</access_arguments>
</item>
<item>
<path>civicrm/api3</path>
<page_callback>CRM_Admin_Page_APIExplorer</page_callback>
<access_arguments>access CiviCRM</access_arguments>
<title>CiviCRM API v3</title>
Expand Down
2 changes: 2 additions & 0 deletions CRM/Upgrade/Incremental/sql/5.20.alpha1.mysql.tpl
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{* file to handle db changes in 5.20.alpha1 during upgrade *}

UPDATE civicrm_navigation SET url = "civicrm/api3" WHERE url = "civicrm/api" AND domain_id = {$domainID};
4 changes: 2 additions & 2 deletions sql/civicrm_generated.mysql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion xml/templates/civicrm_navigation.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ SET @devellastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/api', '{ts escape="sql" skip="true"}Api Explorer v3{/ts}', 'API Explorer', 'administer CiviCRM', '', @devellastID, '1', NULL, 1 ),
( @domainID, 'civicrm/api3', '{ts escape="sql" skip="true"}Api Explorer v3{/ts}', 'API Explorer', 'administer CiviCRM', '', @devellastID, '1', NULL, 1 ),
( @domainID, 'civicrm/api4#/explorer', '{ts escape="sql" skip="true"}Api Explorer v4{/ts}', 'Api Explorer v4', 'administer CiviCRM', '', @devellastID, '1', NULL, 2 ),
( @domainID, 'https://civicrm.org/developer-documentation?src=iam', '{ts escape="sql" skip="true"}Developer Docs{/ts}', 'Developer Docs', 'administer CiviCRM', '', @devellastID, '1', NULL, 3 );

Expand Down

0 comments on commit f96eb23

Please sign in to comment.