Error saving form in non-english localization

zdenny - March 20, 2009 - 06:45
Project:SEO Checklist
Version:6.x-1.0-beta3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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 ;)

#1

shiroitatsu - April 9, 2009 - 16:44

Noticed the same problem too. Fix working well.

#2

theusualsuspect - June 2, 2009 - 13:14

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

viadimezzo - July 11, 2009 - 12:01

Thanks for the fix. :-)

#4

Volacci - August 8, 2009 - 01:10
Status:active» closed

Try 2.0. Download it here: Drupal SEO Checklist

 
 

Drupal is a registered trademark of Dries Buytaert.