Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
29a7751f
Commit
29a7751f
authored
Jun 29, 2016
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_catalog: Dont try to update title property of new catalog
parent
2fe9d8d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+6
-2
No files found.
product/ERP5/ERP5Site.py
View file @
29a7751f
...
...
@@ -1730,8 +1730,12 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
# Update properties list for the new catalog from the SQLCatalog
# Not an efficient way to carry this
for
property_id
in
sql_catalog
.
propertyIds
():
value
=
getattr
(
sql_catalog
,
property_id
)
new_erp5_catalog
.
_updateProperty
(
id
=
property_id
,
value
=
value
)
# This is needed because there have been problems with setting property
# for title, see this docstring for explanations:
# https://lab.nexedi.com/nexedi/erp5/blob/198df7021a17725e81ab930015c3c618e94263db/product/ERP5Type/Base.py#L3531
if
not
property_id
==
'title'
:
value
=
getattr
(
sql_catalog
,
property_id
)
new_erp5_catalog
.
_updateProperty
(
id
=
property_id
,
value
=
value
)
# Use the new ERP5Catalog object as the default sql catalog
self
.
portal_catalog
.
default_sql_catalog_id
=
new_id
...
...
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