diff --git a/patches/march_2013/p11_update_attach_files.py b/patches/march_2013/p11_update_attach_files.py index 769463a590..ef39ce89f8 100644 --- a/patches/march_2013/p11_update_attach_files.py +++ b/patches/march_2013/p11_update_attach_files.py @@ -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) \ No newline at end of file diff --git a/setup/doctype/item_group/item_group.py b/setup/doctype/item_group/item_group.py index ba4ea77504..827eed4f3e 100644 --- a/setup/doctype/item_group/item_group.py +++ b/setup/doctype/item_group/item_group.py @@ -74,7 +74,7 @@ class DocType(DocTypeNestedSet): for d in self.doc.sub_groups: d.count = get_group_item_count(d.name) - self.doc.items = get_product_list_for_group(product_group = self.doc.name, limit=20) + self.doc.items = get_product_list_for_group(product_group = self.doc.name, limit=100) self.parent_groups = get_parent_item_groups(self.doc.name) self.doc.title = self.doc.name diff --git a/website/templates/html/product_group.html b/website/templates/html/product_group.html index 2e80c43c58..510f9946ac 100644 --- a/website/templates/html/product_group.html +++ b/website/templates/html/product_group.html @@ -29,8 +29,8 @@ {{ item }} {% endfor %} - {% if len(items)==20 %} -