diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-09 17:28:06 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-09 17:28:06 +0300 |
commit | 4c58eeac5887b881b9b57c8c4f52d2aa51e16fea (patch) | |
tree | 0036c13d73b1f802a2ff7c28b2c40385a85ca070 | |
parent | 7f5202bf93166358a90c46782eeff9fba528ec95 (diff) | |
parent | b4a569e9aa60eb110a36e220740b51b7582d5f6d (diff) |
-rw-r--r-- | core/Updates/0.5.php | 6 | ||||
-rw-r--r-- | plugins/Goals/templates/GoalForm.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/Updates/0.5.php b/core/Updates/0.5.php index 108e651617..2f5ae09d7b 100644 --- a/core/Updates/0.5.php +++ b/core/Updates/0.5.php @@ -19,15 +19,15 @@ class Piwik_Updates_0_5 implements Piwik_iUpdate { Piwik_Updater::updateDatabase(__FILE__, array( 'ALTER TABLE ' . Piwik::prefixTable('log_action'). ' ADD COLUMN `hash` INTEGER(10) UNSIGNED NOT NULL AFTER `name`;' => false, - 'UPDATE '. Piwik::prefixTable('log_action'). ' SET `hash` = CRC32(name);' => false, - 'CREATE INDEX index_type_hash ON '. Piwik::prefixTable('log_action') .' (type, hash);' => false, - 'DROP INDEX index_type_name ON '. Piwik::prefixTable('log_action') .';' => false, 'ALTER TABLE '. Piwik::prefixTable('log_visit') .' CHANGE visit_exit_idaction visit_exit_idaction_url INTEGER(11) NOT NULL;' => false, 'ALTER TABLE '. Piwik::prefixTable('log_visit') .' CHANGE visit_entry_idaction visit_entry_idaction_url INTEGER(11) NOT NULL;' => false, 'ALTER TABLE ' . Piwik::prefixTable('log_link_visit_action'). ' CHANGE `idaction_ref` `idaction_url_ref` INTEGER(10) UNSIGNED NOT NULL;' => false, 'ALTER TABLE ' . Piwik::prefixTable('log_link_visit_action'). ' CHANGE `idaction` `idaction_url` INTEGER(10) UNSIGNED NOT NULL;' => false, 'ALTER TABLE ' . Piwik::prefixTable('log_link_visit_action'). ' ADD COLUMN `idaction_name` INTEGER(10) UNSIGNED AFTER `idaction_url_ref`;' => false, 'ALTER TABLE ' . Piwik::prefixTable('log_conversion'). ' CHANGE `idaction` `idaction_url` INTEGER(11) UNSIGNED NOT NULL;' => false, + 'UPDATE '. Piwik::prefixTable('log_action'). ' SET `hash` = CRC32(name);' => false, + 'CREATE INDEX index_type_hash ON '. Piwik::prefixTable('log_action') .' (type, hash);' => false, + 'DROP INDEX index_type_name ON '. Piwik::prefixTable('log_action') .';' => false, )); } } diff --git a/plugins/Goals/templates/GoalForm.js b/plugins/Goals/templates/GoalForm.js index f3c5af4227..22751ac0d3 100644 --- a/plugins/Goals/templates/GoalForm.js +++ b/plugins/Goals/templates/GoalForm.js @@ -137,7 +137,7 @@ function getAjaxAddGoal() parameters.pattern = '.*'; parameters.caseSensitive = 0; } else { - parameters.matchAttribute = $('input[name=match_attribute][checked]').val(); + parameters.matchAttribute = $('input[name=match_attribute]:checked').val(); parameters.patternType = $('[name=pattern_type]').val(); parameters.pattern = encodeURIComponent( $('input[name=pattern]').val() ); parameters.caseSensitive = $('#case_sensitive').attr('checked') == true ? 1: 0; |