Merge pull request #10157 from eileenmcnaughton/iida3
[civicrm-core.git] / api / v3 / SavedSearch.php
index c502ef9a1ace5b7f6ef56bb97480d82350aa3632..e32c258e35282961af64d811031e582956f5c0e4 100644 (file)
@@ -2,7 +2,7 @@
 
 /*
   +--------------------------------------------------------------------+
-  | CiviCRM version 4.6                                                |
+  | CiviCRM version 4.7                                                |
   +--------------------------------------------------------------------+
   | Copyright Chirojeugd-Vlaanderen vzw 2015                           |
   +--------------------------------------------------------------------+
@@ -43,6 +43,7 @@
  * @access public
  */
 function civicrm_api3_saved_search_create($params) {
+  civicrm_api3_verify_one_mandatory($params, NULL, array('form_values', 'where_clause'));
   // The create function of the dao expects a 'formValues' that is
   // not serialized. The get function returns form_values, that is
   // serialized.