mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-19 06:45:11 +00:00
[patch] [fix] substr starts with 1
This commit is contained in:
@@ -11,6 +11,6 @@ def execute():
|
||||
else:
|
||||
webnotes.conn.sql("""update `tab%(parent)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,
|
||||
concat('files/', %(fieldname)s))""" % f)
|
||||
Reference in New Issue
Block a user