[patch] [fix] substr starts with 1
This commit is contained in:
parent
2fe802c81e
commit
acfab66239
@ -11,6 +11,6 @@ def execute():
|
|||||||
else:
|
else:
|
||||||
webnotes.conn.sql("""update `tab%(parent)s`
|
webnotes.conn.sql("""update `tab%(parent)s`
|
||||||
set %(fieldname)s =
|
set %(fieldname)s =
|
||||||
if(substr(%(fieldname)s,0,4)='http' or substr(%(fieldname)s, 0, 5)='files',
|
if(substr(%(fieldname)s,1,4)='http' or substr(%(fieldname)s,1,5)='files',
|
||||||
%(fieldname)s,
|
%(fieldname)s,
|
||||||
concat('files/', %(fieldname)s))""" % f)
|
concat('files/', %(fieldname)s))""" % f)
|
Loading…
x
Reference in New Issue
Block a user