Download & Extend

Error saving form in non-english localization

Project:SEO Checklist
Version:6.x-1.0-beta3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi,

if submit button text save is translated by locale module, the SEO checklist module doesn't work correctly, submitting form by save button do nothing ;)

Problem is in SEOChecklist.module file in line 274: if($_POST['op']=='Save' ) vs. button text generated by construction '#value' => t('Save') in line 82 (and 263).

I fix the problem changing line 274 to if($_POST['op']==t('Save') ) for me but I'm not sure it is 100% correct solution.

P.S. Tnx for the module ;)

Comments

#1

Noticed the same problem too. Fix working well.

#2

I had the same problem too, with the german localization, but your fix worked perfect. First time I ever hacked a module instead of patching it, but your fix is so obvious and simple, why go through all the trouble to patch...

#3

Thanks for the fix. :-)

#4

Status:active» closed (fixed)

Try 2.0. Download it here: Drupal SEO Checklist

nobody click here