Browse Source

Merge pull request #938 from nabinhait/fix1

Minor fixes
version-14
Nabin Hait 10 years ago
parent
commit
222f77a898
3 changed files with 6 additions and 3 deletions
  1. +1
    -0
      frappe/public/js/frappe/form/control.js
  2. +4
    -2
      frappe/website/doctype/web_page/web_page.json
  3. +1
    -1
      frappe/website/website_generator.py

+ 1
- 0
frappe/public/js/frappe/form/control.js View File

@@ -440,6 +440,7 @@ frappe.ui.form.ControlDate = frappe.ui.form.ControlData.extend({
if(!dateutil.validate(value)) {
msgprint (__("Date must be in format: {0}", [sys_defaults.date_format || "yyyy-mm-dd"]));
callback("");
return;
}
return callback(value);
}


+ 4
- 2
frappe/website/doctype/web_page/web_page.json View File

@@ -1,5 +1,5 @@
{
"creation": "2013-03-28 10:35:30",
"creation": "2013-03-28 10:35:30",
"description": "Page to show on the website\n",
"docstatus": 0,
"doctype": "DocType",
@@ -25,6 +25,7 @@
"fieldtype": "Data",
"in_list_view": 1,
"label": "Page Name",
"no_copy": 1,
"permlevel": 0,
"read_only": 0
},
@@ -40,6 +41,7 @@
"fieldtype": "Read Only",
"hidden": 1,
"label": "Parent Website Route",
"no_copy": 1,
"options": "",
"permlevel": 0
},
@@ -171,7 +173,7 @@
"icon": "icon-file-alt",
"idx": 1,
"max_attachments": 20,
"modified": "2014-08-19 02:19:05.426465",
"modified": "2014-11-28 15:00:09.806213",
"modified_by": "Administrator",
"module": "Website",
"name": "Web Page",


+ 1
- 1
frappe/website/website_generator.py View File

@@ -98,7 +98,7 @@ class WebsiteGenerator(Document):

if old_routes:
for old_route in old_routes:
clear_cache(old_route)
clear_cache(make_route(old_route))

frappe.db.sql("""update `tab{0}` set
parent_website_route = replace(parent_website_route, %s, %s),


Loading…
Cancel
Save