Skip to content

Commit

Permalink
Merge pull request #4918 from cs3org/fix-app-templates
Browse files Browse the repository at this point in the history
fix: fix app templates
  • Loading branch information
micbar authored Nov 7, 2024
2 parents 5b9c7e6 + ded935d commit f863e82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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

0 comments on commit f863e82

Please sign in to comment.