Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix app templates #4918

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-app-templates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Fix app templates

We fixed the app templates by using the product name of the providerinfo instead of the provider name.

https://github.com/cs3org/reva/pull/4918
2 changes: 1 addition & 1 deletion internal/http/services/appprovider/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var tl = TemplateList{

func addTemplateInfo(mt *appregistry.MimeTypeInfo, apps []*ProviderInfo) {
for _, app := range apps {
if tls, ok := tl.Templates[strings.ToLower(app.Name)]; ok {
if tls, ok := tl.Templates[strings.ToLower(app.ProductName)]; ok {
for _, tmpl := range tls {
if tmpl.Extension != "" && tmpl.Extension == mt.Ext {
app.TargetExt = tmpl.TargetExtension
Expand Down
Loading