backdrop-contrib / honeypot

Backdrop port of Drupal module. Uses both the honeypot and timestamp methods of deterring spam bots from completing forms on your site.
GNU General Public License v2.0
3 stars 1 forks source link

Schema version set to 2001 instead of 1001 in last update. #7

Closed jenlampton closed 8 years ago

jenlampton commented 8 years ago

A typo, likely. but should be fixed, otherwise we're going to have some issues when Backdrop 2 is out :)

CybersecDan commented 8 years ago

Is this what you're referring too in the honeypot.install file:

 * Ensure a css file is created
 */
function honeypot_update_2001() {
  backdrop_load('module', 'honeypot');
  module_load_include('inc', 'honeypot', 'honeypot.admin');
  honeypot_create_css(config_get('honeypot.settings', 'element_name'));
}
jenlampton commented 8 years ago

yes, function honeypot_update_2001() { should be function honeypot_update_1001() { and that whole function should be located (in the file) above the closing docblock that says "things after this should start with 2000" :)

CybersecDan commented 8 years ago

Gotcha. Mind if I give it a try?

jenlampton commented 8 years ago

please do! :)

CybersecDan commented 8 years ago

Just opened a PR. Hope I did it right. : / I need to do this way more often to get this process down without any worries. ha. #8

CybersecDan commented 8 years ago

Also just realized that my branch number is 7, instead of 8. Sorry. I know we like to keep the branch names corresponding to the issue number.

herbdool commented 8 years ago

Thanks @danielrose28 and @jenlampton. Merged!

klonos commented 8 years ago

I just upgraded my website from 1.0.2 to 1.0.3 and it doesn't have any message about the db needing to be updated??

CybersecDan commented 8 years ago

That might be normal, no? I've run into that before with implementing a module update, then update.php, only to find nothing needed to be updated, but the new functionality was in fact updated. Not sure why that is. Just a thought. I'm open to suggestions, pro tips, etc., and I can take a look at the code again.