Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Commit

Permalink
Fix clearing multiple select fields
Browse files Browse the repository at this point in the history
  • Loading branch information
megawebmaster committed Sep 9, 2014
1 parent 56221b1 commit 902f595
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Fix: Select2 errors on product, order and coupon pages.
* Fix: Notice about `WYSIJA` constant.
* Fix: Re-add `jigoshop_form` class for Groups integration plugin.
* Fix: Clearing multiple select fields.
* Improved: Add "Allow URL fopen" to System Info page.
* Improved: Handling of Jigoshop Settings scripts.
* 1.11.6 - 2014-09-05:
Expand Down
5 changes: 3 additions & 2 deletions admin/jigoshop-admin-settings-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ protected function __construct(){
* @since 1.3
*/
public function settings_scripts(){
// jigoshop_add_script('jquery-tools', JIGOSHOP_URL.'/assets/js/jquery.tools.min.js', array('jquery'), array('version' => '1.2.7'));
jigoshop_add_script('jigoshop-bootstrap-tooltip', JIGOSHOP_URL.'/assets/js/bootstrap-tooltip.min.js', array('jquery'), array('version' => '2.0.3'));
jigoshop_add_script('jigoshop-select2', JIGOSHOP_URL.'/assets/js/select2.min.js', array('jquery'));
jigoshop_add_script('jigoshop-settings', JIGOSHOP_URL.'/assets/js/settings.js', array('jquery'));
jigoshop_add_script('jigoshop-settings', JIGOSHOP_URL.'/assets/js/settings.js', array('jquery', 'jquery-tools'));
}

/**
Expand Down Expand Up @@ -323,7 +324,7 @@ public function validate_settings($input){
}
}

$value = isset($input[$setting['id']]) ? $input[$setting['id']] : null;
$value = isset($input[$setting['id']]) ? $input[$setting['id']] : false;

// we have a $setting
// $value has the WordPress user submitted value for this $setting
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ However, if you want priority, dedicated support from Jigoshop staff, we dp offe
* Fix: Select2 errors on product, order and coupon pages.
* Fix: Notice about `WYSIJA` constant.
* Fix: Re-add `jigoshop_form` class for Groups integration plugin.
* Fix: Clearing multiple select fields.
* Improved: Add "Allow URL fopen" to System Info page.
* Improved: Handling of Jigoshop Settings scripts.

Expand Down

0 comments on commit 902f595

Please sign in to comment.