Skip to content

Commit

Permalink
WPCIVIUX-106 Explode comma separated strings to array for NOT/IN
Browse files Browse the repository at this point in the history
  • Loading branch information
agileware-fj committed Sep 22, 2021
1 parent a9705d2 commit de38755
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions civicrm-ux.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Plugin Name: WP CiviCRM UX
* Plugin URI: https://github.com/agileware/wp-civicrm-ux
* Description: A better user experience for integrating WordPress and CiviCRM
* Version: 1.8.3
* Version: 1.8.4
* Requires at least: 5.8
* Requires PHP: 7.4
* Author: Agileware
Expand All @@ -26,7 +26,7 @@
* Start at version 1.0.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define( 'CIVICRM_UXVERSION', '1.8.3' );
define( 'CIVICRM_UXVERSION', '1.8.4' );

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
Expand Down
4 changes: 4 additions & 0 deletions shortcodes/civicrm/api4-get.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ public function shortcode_callback( $atts = [], $content = null, $tag = '' ) {
$op = '=';
}

if($op == 'IN' || $op == 'NOT IN') {
$value = explode(',', $value);
}

switch($k) {
case 'event_type':
case 'financial_type':
Expand Down

0 comments on commit de38755

Please sign in to comment.