Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms - Version 1.9.22

Version Description

  • Bugfix: Rich text editors in field configuration widgets were misbehaving after a drag and drop operation.
  • Bugfix: A Block Editor block parameter was triggering errors on WordPress >
Download this release

Release Info

Developer thethemefoundry
Plugin Icon 128x128 Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms
Version 1.9.22
Comparing to
See all releases

Code changes from version 1.9.21 to 1.9.22

core/classes/class-block.php CHANGED
@@ -37,7 +37,7 @@ class HappyForms_Block {
37
  private function get_attributes() {
38
  $attributes = array(
39
  'id' => array(
40
- 'type' => 'int',
41
  )
42
  );
43
 
37
  private function get_attributes() {
38
  $attributes = array(
39
  'id' => array(
40
+ 'type' => 'integer',
41
  )
42
  );
43
 
happyforms.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin URI: https://happyforms.me
6
  * Description: Your friendly drag and drop contact form builder for creating contact forms, lead generation forms, feedback forms, quote forms, survey forms and more!
7
  * Author: HappyForms
8
- * Version: 1.9.21
9
  * Author URI: https://happyforms.me
10
  * Upgrade URI: https://happyforms.me/upgrade
11
  */
@@ -13,7 +13,7 @@
13
  /**
14
  * The current version of the plugin.
15
  */
16
- define( 'HAPPYFORMS_VERSION', '1.9.21' );
17
 
18
  if ( ! function_exists( 'happyforms_plugin_file' ) ):
19
  /**
5
  * Plugin URI: https://happyforms.me
6
  * Description: Your friendly drag and drop contact form builder for creating contact forms, lead generation forms, feedback forms, quote forms, survey forms and more!
7
  * Author: HappyForms
8
+ * Version: 1.9.22
9
  * Author URI: https://happyforms.me
10
  * Upgrade URI: https://happyforms.me/upgrade
11
  */
13
  /**
14
  * The current version of the plugin.
15
  */
16
+ define( 'HAPPYFORMS_VERSION', '1.9.22' );
17
 
18
  if ( ! function_exists( 'happyforms_plugin_file' ) ):
19
  /**
inc/assets/js/customize.js CHANGED
@@ -584,6 +584,7 @@
584
  this.listenTo( this.model.get( 'parts' ), 'reset', this.onPartModelsSorted );
585
  this.listenTo( this.partViews, 'add', this.onPartViewAdd );
586
  this.listenTo( this.partViews, 'remove', this.onPartViewRemove );
 
587
  this.listenTo( this.partViews, 'add remove reset', this.onPartViewsChanged );
588
  this.listenTo( this, 'sort-stop', this.onPartSortStop );
589
  },
@@ -785,6 +786,18 @@
785
  }, this ) );
786
  },
787
 
 
 
 
 
 
 
 
 
 
 
 
 
788
  onPartViewsChanged: function( partViews ) {
789
  if ( this.partViews.length > 0 ) {
790
  this.$el.addClass( 'has-parts' );
584
  this.listenTo( this.model.get( 'parts' ), 'reset', this.onPartModelsSorted );
585
  this.listenTo( this.partViews, 'add', this.onPartViewAdd );
586
  this.listenTo( this.partViews, 'remove', this.onPartViewRemove );
587
+ this.listenTo( this.partViews, 'reset', this.onPartViewsSorted );
588
  this.listenTo( this.partViews, 'add remove reset', this.onPartViewsChanged );
589
  this.listenTo( this, 'sort-stop', this.onPartSortStop );
590
  },
786
  }, this ) );
787
  },
788
 
789
+ onPartViewsSorted: function( partViews ) {
790
+ var $stage = $( '.happyforms-form-widgets', this.$el );
791
+
792
+ partViews.forEach( function( partViewModel ) {
793
+ var partView = partViewModel.get( 'view' );
794
+ var $partViewEl = partView.$el;
795
+ $partViewEl.detach();
796
+ $stage.append( $partViewEl );
797
+ partView.trigger( 'refresh' );
798
+ }, this );
799
+ },
800
+
801
  onPartViewsChanged: function( partViews ) {
802
  if ( this.partViews.length > 0 ) {
803
  this.$el.addClass( 'has-parts' );
languages/happyforms.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the HappyForms package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: HappyForms 1.9.21\n"
6
  "Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
7
- "POT-Creation-Date: 2020-10-02 14:58:27+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the HappyForms package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: HappyForms 1.9.22\n"
6
  "Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
7
+ "POT-Creation-Date: 2020-10-06 15:07:48+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: contact, contact form, email, feedback form, form, form builder, custom fo
5
  Requires at least: 4.8
6
  Tested up to: 5.5.1
7
  Requires PHP: 5.3
8
- Stable tag: 1.9.21
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -97,6 +97,10 @@ Yep! HappyForms free isn't going anywhere but for those looking for even more yo
97
 
98
  == Changelog ==
99
 
 
 
 
 
100
  = 1.9.21 =
101
  * Improvement: better usability of various elements of Edit Form screen.
102
 
@@ -656,6 +660,9 @@ Yep! HappyForms free isn't going anywhere but for those looking for even more yo
656
 
657
  == Upgrade Notice ==
658
 
 
 
 
659
  = 1.9.21 =
660
  * Minor improvements and bugfixes.
661
 
5
  Requires at least: 4.8
6
  Tested up to: 5.5.1
7
  Requires PHP: 5.3
8
+ Stable tag: 1.9.22
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
97
 
98
  == Changelog ==
99
 
100
+ = 1.9.22 =
101
+ * Bugfix: Rich text editors in field configuration widgets were misbehaving after a drag and drop operation.
102
+ * Bugfix: A Block Editor block parameter was triggering errors on WordPress >= 5.5.
103
+
104
  = 1.9.21 =
105
  * Improvement: better usability of various elements of Edit Form screen.
106
 
660
 
661
  == Upgrade Notice ==
662
 
663
+ = 1.9.22 =
664
+ * Minor bugfixes.
665
+
666
  = 1.9.21 =
667
  * Minor improvements and bugfixes.
668