mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 13:49:13 +00:00
[patch] [fix] substr starts with 1
This commit is contained in:
@@ -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)
|
||||||
Reference in New Issue
Block a user