If a ticket gets longer you have to scroll trough the whole ticket to find attached files.
It would be nice to have a button which shows all files attached to a ticket.
e.g.
If a ticket gets longer you have to scroll trough the whole ticket to find attached files.
It would be nice to have a button which shows all files attached to a ticket.
e.g.
mhm.
Maybe run zammad run rails r "Setting.set('ui_ticket_zoom_sidebar_article_attachments', true)"
restart Zammad and be happy.
thank you Marcel - that was exactly the thing I was looking for.
Iām trying to run this, but it seems i donāt have this setting. The settings seems to be introduced in zammad/20180220000001_setting_attachment_preview.rb at 5df98684da64aed93cc29e4be029d81566520906 Ā· zammad/zammad Ā· GitHub. While iām still at zammad version 3.6.X, i would expect it to be available. Also checking the settings table i donāt see any setting with that name. Am i missing something obvious?
zammad@75f4b85b4fbf:~$ rails r āSetting.set(āui_ticket_zoom_sidebar_article_attachmentsā, true)ā
Traceback (most recent call last):
18: from bin/rails:9:in <main>' 17: from /usr/local/bundle/gems/activesupport-5.2.4.5/lib/active_support/dependencies.rb:291:in
requireā
16: from /usr/local/bundle/gems/activesupport-5.2.4.5/lib/active_support/dependencies.rb:257:in load_dependency' 15: from /usr/local/bundle/gems/activesupport-5.2.4.5/lib/active_support/dependencies.rb:291:in
block in requireā
14: from /usr/local/bundle/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in require' 13: from /usr/local/bundle/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in
require_with_bootsnap_lfiā
12: from /usr/local/bundle/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in register' 11: from /usr/local/bundle/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in
block in require_with_bootsnap_lfiā
10: from /usr/local/bundle/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require' 9: from /usr/local/bundle/gems/railties-5.2.4.5/lib/rails/commands.rb:18:in
ā
8: from /usr/local/bundle/gems/railties-5.2.4.5/lib/rails/command.rb:46:in invoke' 7: from /usr/local/bundle/gems/railties-5.2.4.5/lib/rails/command/base.rb:69:in
performā
6: from /usr/local/bundle/gems/thor-1.1.0/lib/thor.rb:392:in dispatch' 5: from /usr/local/bundle/gems/thor-1.1.0/lib/thor/invocation.rb:127:in
invoke_commandā
4: from /usr/local/bundle/gems/thor-1.1.0/lib/thor/command.rb:27:in run' 3: from /usr/local/bundle/gems/railties-5.2.4.5/lib/rails/commands/runner/runner_command.rb:41:in
performā
2: from /usr/local/bundle/gems/railties-5.2.4.5/lib/rails/commands/runner/runner_command.rb:41:in eval' 1: from /usr/local/bundle/gems/railties-5.2.4.5/lib/rails/commands/runner/runner_command.rb:41:in
ā
/opt/zammad/app/models/setting.rb:37:in `setā: Canāt find config setting āui_ticket_zoom_sidebar_article_attachmentsā (RuntimeError)
Thanks Olaf
Yeah, well most probably any important migrations that did not run.
Thatās the only reason why these settings may be missing. that functionality is fairly old (pre 3.0)
would running ārake db:migrate:up VERSION=20180220000001ā do trick, or should i run these important migrations in another way?
awsome running the migration did the trick, the feature works great. Thanks!
How have I never even heard of this setting before? I canāt find any mention of this in the docs, I canāt find any GUI setting for this in Zammad. Should this be in the GUI? I only started with Zammad in the end of 2019 so I canāt have missed any migrations. In your response to the original question you make it sound like this setting should be common knowledge but itās obviously very well hidden and could be communicated better if you ask me.
This has been a hidden settings ever since.
The requirement of this functionality is fairly low.
We try to keep Zammads settings as slim as possible when ever possible. Said setting is such a case.
You can only set it via console currently is the only way. Not sure if itās currently living in the console documentation - that one needs rework any way soā¦
This topic was automatically closed after 416 days. New replies are no longer allowed.