Parcourir la source

fixed attachments - now not reqd to save after attaching

version-14
Rushabh Mehta il y a 14 ans
Parent
révision
1c9ebbacc0
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      cgi-bin/webnotes/utils/file_manager.py

+ 2
- 2
cgi-bin/webnotes/utils/file_manager.py Voir le fichier

@@ -48,7 +48,7 @@ def add_file_list(dt, dn, fname, fid):
import webnotes
try:
# get the old file_list
fl = webnotes.conn.sql("select file_list from `tab%s` where name=%s" % (dt, '%s'), dn)[0][0] or ''
fl = webnotes.conn.get_value(dt, dn, 'file_list') or ''
if fl:
fl += '\n'
@@ -74,7 +74,7 @@ def remove_file_list(dt, dn, fid):
import webnotes
# get the old file_list
fl = webnotes.conn.sql("select file_list from `tab%s` where name=%s" % (dt, '%s'), dn)[0][0] or ''
fl = webnotes.conn.get_value(dt, dn, 'file_list') or ''
new_fl = []
fl = fl.split('\n')
for f in fl:


Chargement…
Annuler
Enregistrer