0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/plugins/discourse-solved
Martin Brennan 982fba1536
FIX: Add missing solved_topics_auto_close_hours custom field entries (#42255)
When `solved_topics_auto_close_hours` is null/missing in the DB for
Support type categories, the UI defaults to 48 hours for this setting,
but this can be surprising for admins when changing some other support
category setting, as it will go from 0 -> 48 hours in the background.

This commit fixes the issue by backfilling a new custom field
value for `solved_topics_auto_close_hours`, setting it to `0`
on categories with `enable_accepted_answers` set to true
and no existing value for the field.

New support categories are unaffected, as we set 48 hours by
default there.
2026-08-04 09:04:44 +10:00
..
admin/assets/javascripts FIX: match /filter topic-outcome links to the dashboard's counts (#42253) 2026-08-03 16:38:12 +03:00
app SECURITY: Hidden first-post excerpt is emitted in Q&A schema JSON-LD 2026-07-28 16:40:22 +02:00
assets FEATURE: link Topic outcomes to the filtered topic list (#42132) 2026-07-30 06:06:35 +03:00
config I18N: Update translations (#42127) 2026-07-29 11:27:01 +02:00
db FIX: Add missing solved_topics_auto_close_hours custom field entries (#42255) 2026-08-04 09:04:44 +10:00
lib FEATURE: Let plugins register persistable admin dashboard section settings (#41843) 2026-07-22 18:00:38 +03:00
public/images/upcoming_changes FEATURE: add solved me too button (#39652) 2026-05-13 17:03:25 +04:00
spec FIX: Add missing solved_topics_auto_close_hours custom field entries (#42255) 2026-08-04 09:04:44 +10:00
test/javascripts FIX: match /filter topic-outcome links to the dashboard's counts (#42253) 2026-08-03 16:38:12 +03:00
about.json
package.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00
plugin.rb FEATURE: Let plugins register persistable admin dashboard section settings (#41843) 2026-07-22 18:00:38 +03:00
README.md
tsconfig.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00

Discourse Solved

Provides a solved button on designated categories

How to Install this Plugin

To install Discourse Plugin - https://meta.discourse.org/t/install-a-plugin/19157

How to Check if Plugin is installed

Go to Admin > Plugins

You should now see:

screen shot 2018-01-27 at 9 09 47 am

What to expect if Plugin is installed

Inside the Plugins, you will have the following options:

screen shot 2018-01-27 at 8 57 35 am

How to enable it in your posts

New Categories - Check Allow topic owner and staff to mark a reply as the solution

test2

Old Categories - Go to that Category > Edit > Settings > Check Allow topic owner and staff to mark a reply as the solution

BONUS: How to add badges to those who answered correctly

https://meta.discourse.org/t/discourse-solved-accepted-answer-plugin/30155

License

MIT