Closed (outdated)
Project:
Internationalization
Version:
6.x-1.10
Component:
Blocks
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
6 Aug 2011 at 22:14 UTC
Updated:
26 Oct 2016 at 16:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
noomz commentedI second @gnucifer, should change to "isset" because objectid can be 0(zero) in any custom module user created. If the purpose is not allow the empty string, I think using "trim" along with "isset" should be better. See in patch.
Comment #2
K15.Multik commentedIn my opinion, it is additionally necessary to check whether the value is a number.
Replace
!empty($context->$field)with(!empty($context->$field) || is_numeric($context->$field)).Comment #3
K15.Multik commentedNeeds review ))
Comment #4.0
(not verified) commentedclarification
Comment #5
oliverpolden commentedI can confirm I've seen this issue. The patch in #3 works for me.
I've also had a look at the reasons the tests have failed for the patch. I'm not sure exactly how to interpret it but it looks like the test is failing to log in however I've locally tested logging in with a translated block and it works fine.
Comment #6
joseph.olstad