-
-
Save seamuslee001/11c9867fb0d5e3f88c5df9a7783dd8cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/api/v3/Navigation.php b/api/v3/Navigation.php | |
index c117fe8..b16b9a6 100644 | |
--- a/api/v3/Navigation.php | |
+++ b/api/v3/Navigation.php | |
@@ -106,6 +106,7 @@ function _civicrm_api3_navigation_create_spec(&$params) { | |
* API result array. | |
*/ | |
function civicrm_api3_navigation_create($params) { | |
+ civicrm_api3_verify_one_mandatory($params, NULL, array('name')); | |
return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params); | |
} | |
diff --git a/api/v3/PrintLabel.php b/api/v3/PrintLabel.php | |
index dc38319..083b993 100644 | |
--- a/api/v3/PrintLabel.php | |
+++ b/api/v3/PrintLabel.php | |
@@ -39,6 +39,7 @@ | |
* @return array | |
*/ | |
function civicrm_api3_print_label_create($params) { | |
+ civicrm_api3_verify_one_mandatory($params, NULL, array('name')); | |
return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params); | |
} | |
diff --git a/api/v3/RecurringEntity.php b/api/v3/RecurringEntity.php | |
index eba9879..36868dc 100644 | |
--- a/api/v3/RecurringEntity.php | |
+++ b/api/v3/RecurringEntity.php | |
@@ -66,6 +66,7 @@ function _civicrm_api3_recurring_entity_get_spec(&$params) { | |
* @return array | |
*/ | |
function civicrm_api3_recurring_entity_create($params) { | |
+ civicrm_api3_verify_one_mandatory($params, NULL, array('entity_id', 'entity_table')); | |
return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment