Commit 5f017405 authored by Roque's avatar Roque

erp5_web_project_ui: avoid query if no project pages

parent f6d322e4
......@@ -123,6 +123,9 @@
validation_state_query_list = [],
valid_state_list = ["shared_alive", "released_alive", "published_alive"],
web_page;
if (project_pages.length === 0) {
return {"id": id, "content": content, "edit_view": edit_view};
}
query_list.push(new SimpleQuery({
key: "portal_type",
operator: "=",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment