From 04a256377bb839e6ff72ffedbcb7d2e6f6626bb9 Mon Sep 17 00:00:00 2001 From: Gennady Kovshenin Date: Thu, 3 Jan 2019 16:03:16 +0300 Subject: [PATCH 1/2] Fix Import support in GF 2.3+ The constructor can be called with an object to copy in later versions of GF. Make sure we're not limiting the $properties to array. Fixes #9 --- class-gf-field-business-hours.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/class-gf-field-business-hours.php b/class-gf-field-business-hours.php index 2cc0d9b..3608478 100644 --- a/class-gf-field-business-hours.php +++ b/class-gf-field-business-hours.php @@ -13,8 +13,7 @@ class GF_Field_Business_Hours extends GF_Field { public $inputType = 'business_hours'; - public function __construct( array $data = array() ) { - + public function __construct( $data = array() ) { parent::__construct( $data ); $this->add_hooks(); From 0d0f85adb810e35fcc0e52bf5dcae28dce15ddf0 Mon Sep 17 00:00:00 2001 From: Zack Katz Date: Tue, 8 Jan 2019 12:11:27 -0700 Subject: [PATCH 2/2] Version bump --- gravity-forms-business-hours.php | 2 +- readme.txt | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gravity-forms-business-hours.php b/gravity-forms-business-hours.php index ef2aafc..fc7f2d2 100644 --- a/gravity-forms-business-hours.php +++ b/gravity-forms-business-hours.php @@ -3,7 +3,7 @@ Plugin Name: Gravity Forms Business Hours by GravityView Plugin URI: https://gravityview.co Description: Add a Business Hours field to your Gravity Forms form. Brought to you by GravityView, the best plugin for displaying Gravity Forms entries. -Version: 2.1.1 +Version: 2.1.2 Author: GravityView Author URI: https://gravityview.co Text Domain: gravity-forms-business-hours diff --git a/readme.txt b/readme.txt index 3269c15..944b9a0 100644 --- a/readme.txt +++ b/readme.txt @@ -1,7 +1,7 @@ === Gravity Forms Business Hours by GravityView === Tags: gravityview,gravity forms, gravity,gravity form,business, hours, time, field, form Requires at least: 3.3 -Tested up to: 4.9.8 +Tested up to: 5.0.2 Stable tag: trunk Contributors: katzwebdesign,katzwebservices,gravityview License: GPL 3 or higher @@ -54,6 +54,10 @@ These filters are available for code writers to modify the output: == Changelog == += 2.1.2 on January 7, 2019 = + +* Fixed: Error when exporting forms in Gravity Forms that contain Business Hours fields + = 2.1.1 on November 20, 2018 = * Fixed: Newly added fields not working properly