Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos.core
Commits
bddc9de5
Commit
bddc9de5
authored
May 16, 2024
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_panel: use exact match when searching for a title
parent
d2038a36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Project_addSlapOSSoftwareProduct.py
...al_skins/slapos_panel/Project_addSlapOSSoftwareProduct.py
+1
-1
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/SoftwareProduct_addSlapOSSoftwareType.py
...ins/slapos_panel/SoftwareProduct_addSlapOSSoftwareType.py
+1
-1
No files found.
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Project_addSlapOSSoftwareProduct.py
View file @
bddc9de5
...
...
@@ -40,7 +40,7 @@ for software_type in software_type_list:
# First, search if the release already exists
software_product
=
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
"Software Product"
,
title
=
title
,
title
=
{
'query'
:
title
,
'key'
:
'ExactMatch'
}
,
follow_up__uid
=
context
.
getUid
()
)
if
software_product
is
not
None
:
...
...
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/SoftwareProduct_addSlapOSSoftwareType.py
View file @
bddc9de5
...
...
@@ -7,7 +7,7 @@ software_product = context
software_type_variation
=
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
"Software Product Type Variation"
,
parent_uid
=
software_product
.
getUid
(),
title
=
software_type
title
=
{
'query'
:
software_type
,
'key'
:
'ExactMatch'
}
)
if
software_type_variation
is
not
None
:
return
software_product
.
Base_redirect
(
...
...
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