Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
562483b7
Commit
562483b7
authored
May 14, 2012
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no need to insert data into predicate table if dict is empty
parent
4c70a3cc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_predicate_list.xml
...al_catalog/erp5_mysql_innodb/z_catalog_predicate_list.xml
+3
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision
+1
-1
No files found.
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_predicate_list.xml
View file @
562483b7
...
@@ -59,8 +59,10 @@ predicate_property_dict</string> </value>
...
@@ -59,8 +59,10 @@ predicate_property_dict</string> </value>
<dtml-let predicate_list="[]">
\n
<dtml-let predicate_list="[]">
\n
<dtml-in
prefix=
"loop"
expr=
"_.range(_.len(uid))"
>
\n
<dtml-in
prefix=
"loop"
expr=
"_.range(_.len(uid))"
>
\n
<dtml-if
"isPredicate[loop_item]"
>
\n
<dtml-if
"isPredicate[loop_item]"
>
\n
<dtml-if
expr=
"_.len(predicate_property_dict[loop_item]) > 0"
>
\n
<dtml-call
expr=
"predicate_list.append(loop_item)"
>
\n
<dtml-call
expr=
"predicate_list.append(loop_item)"
>
\n
</dtml-if>
\n
</dtml-if>
\n
</dtml-if>
\n
</dtml-in>
\n
</dtml-in>
\n
<dtml-if
expr=
"_.len(predicate_list) > 0"
>
\n
<dtml-if
expr=
"_.len(predicate_list) > 0"
>
\n
REPLACE INTO predicate VALUES \n
REPLACE INTO predicate VALUES \n
...
...
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision
View file @
562483b7
221
224
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment