Skip to content

Commit

Permalink
Fix error when new forms created using global configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
wzul committed Jan 10, 2023
1 parent 08e530e commit 2f84a71
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions chip-for-fluent-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: CHIP for Fluent Forms
* Plugin URI: https://wordpress.org/plugins/chip-for-fluent-forms/
* Description: CHIP - Better Payment & Business Solutions
* Version: 1.0.0
* Version: 1.0.1
* Author: Chip In Sdn Bhd
* Author URI: http://www.chip-in.asia
*
Expand All @@ -16,7 +16,7 @@

if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.

define('FF_CHIP_MODULE_VERSION', 'v1.0.0');
define('FF_CHIP_MODULE_VERSION', 'v1.0.1');

class Chip_Fluent_Forms {

Expand Down
7 changes: 4 additions & 3 deletions includes/class-purchase.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,11 @@ private function is_form_currency_supported( $currency ) {

private function get_settings( $form_id ) {

$options = get_option( FF_CHIP_FSLUG );
$postfix = '';
$options = get_option( FF_CHIP_FSLUG );
$postfix = '';
$form_cid = 'form-customize-' . $form_id;

if ( $options['form-customize-' . $form_id] ) {
if ( array_key_exists( $form_cid, $options ) AND $options[$form_cid] ) {
$postfix = "-$form_id";
}

Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: chipasia, wanzulnet
Tags: chip
Requires at least: 4.7
Tested up to: 6.1
Stable tag: 1.0.0
Stable tag: 1.0.1
Requires PHP: 7.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand All @@ -27,6 +27,9 @@ This plugin will enable your Fluent Forms site to be integrated with CHIP as per

== Changelog ==

= 1.0.1 - 2023-01-10 =
* Fixed - Error when new forms created using global configuration.

= 1.0.0 - 2022-12-02 =
* New - Intial Release

Expand Down

0 comments on commit 2f84a71

Please sign in to comment.