diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4c56c99bb..f7e86f638 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -202,7 +202,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u
- Calendar: switched off, the calendar, its events and the calendar feeds go - a subscribed calendar stops getting them. Tickets are still booked from the ticket and on Dispatch, and booked work still shows on the dashboard.
- Updated the libraries ITFlow is built on: the one that reads ticket mailboxes, the one that sends email, the text editor, the one that cleans up email and document HTML before it is shown, Stripe, the page styling, the charts, the tables, the calendar and the phone number fields. Nothing changes in how they look or work. The text editor's update fixes a security problem in its media plugin, which ITFlow doesn't use.
- Pages are a little lighter: five add-on libraries are gone - three ITFlow no longer used, and two swapped for ITFlow's own code. The IP and MAC address fields on assets and the QR codes for setting up MFA and for shared links work as before. The download is about 5 MB smaller too, without the text editor add-ons and icon font files ITFlow never used.
-- Lists: a row shows its tags only when it has some, so untagged rows are a line shorter - tag one from its own page, or tick it and use Tags in Bulk Action. A client's other pages show the client's tags without the +; change them on the client's overview or the clients list.
+- Lists: a row shows its tags only when it has some, so untagged rows are a line shorter. To tag one, use Tags in its ⋮ menu - its tags show on the row as you tick them, no reload. Cards on the tickets board and the Files grid have it in their menu too. To tag several together, tick them and use Tags in Bulk Action. A client's other pages show the client's tags without the +; change them on the client's overview or the clients list.
- Lists: the page numbers stay on one row - the first and last page and the ones next to yours - however long the list.
- Tickets: Unassigned is amber, as the Unassigned view and the dashboard's tile are, and Not billable a light gray - red is kept for what is late.
- Dashboard and client overview: when the last row of Needs attention is short, its tiles keep their width rather than one stretching across, and a count of one reads 1 Draft invoice, not 1 Draft invoices.
@@ -413,7 +413,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u
- Tickets: `ticketMailTry($from, $subject, $auto_reply)` in `functions/ticket_mail_try.php` asks what `cron/ticket_email_parser.php` asks, in its order, with no writes - `ticketMailTryReply()` mirrors `addReply()`. Kept in step with the parser by hand. `admin/modals/ticket_mail/ticket_mail_try.php` (`?try=1` answers JSON with the result).
- Weekly summary: database 4.0.7 adds `settings.config_weekly_summary`, `_day` (1 Monday to 7 Sunday), `_to` (NULL for every admin) and `_sent_at`. `functions/weekly_summary.php`: `weeklySummaryReady()`, `weeklySummarySettings()`, `weeklySummaryRecipients()`, `weeklySummaryNumbers($from, $to)`, `weeklySummaryNeeds()`, `weeklySummaryEmail($until)`, `weeklySummarySend()` and `weeklySummaryRun()`, called by `cron/nightly_tasks.php`, which sends once on the day (`config_weekly_summary_sent_at`). `send_weekly_summary_now` in `admin/post/settings_notification.php`; the `weekly_summary` email preview.
- Related tickets: database 4.0.8 adds `ticket_links` (`ticket_id` as the primary key, `link_group`, `linked_by`, `linked_at`; deleted with its ticket). `functions/ticket_link.php`: `ticketLinksReady()`, `ticketLinkGroup()`, `ticketLinkMembers()`, `ticketLinkTogether()` (any number of tickets and everything already related to them into one group, with a ticket history line naming the newly related ones), `ticketUnlink()`, `ticketRelated()` and `ticketLinkCounts()` (scoped to the agent's clients), `ticketLinkHidden()`, `ticketLinkCandidates()` and `ticketLinkCarry()` (from `ticketMergeInto()`). A group is numbered by its lowest ticket id, renumbered by `ticketLinkTidy()` as tickets leave, so one number never names two groups; a group left with one ticket is deleted. `agent/post/ticket_link.php` handles `link_tickets`, `unlink_ticket` and `bulk_link_tickets`; Reply to all and Resolve all open `ticket_bulk_reply.php` and `ticket_bulk_resolve.php` with `ticket_ids[]`.
-- Look and feel: `.itflow-dash-rail` is a grid (`repeat(auto-fill, minmax(10rem, 1fr))`, `.itflow-dash-rail-clear` spans it; `.itflow-ov-stats` stays flex), and the attention items of `dashboardAttention()` and `clientOverviewAttention()` take `one`, used when the count is 1. `formatAssignee()` highlights unassigned in warning, `ticketBillableHtml()` draws not billable in `bg-body-secondary`, and `ticketSlaState()` gives `breached` for an open ticket with a `ticket_response_sla_met` or `ticket_resolution_sla_met` of 0 or a deadline in the past. `includes/filter_footer.php` links the first, last and neighboring pages with an ellipsis between, in place of every tenth page. The list pages render `tagPills()` only for a row with tags, and `agent/includes/inc_client_top_head.php` passes `$can_edit` false. `categoryAddButtonHtml()` and `quickAddButton()` are called with their default `btn-outline-secondary` everywhere. `js/app.js` focuses the dialog again on the next tick when AdminLTE's `shown.bs.modal` handler has put focus on its `.btn-close`.
+- Look and feel: `.itflow-dash-rail` is a grid (`repeat(auto-fill, minmax(10rem, 1fr))`, `.itflow-dash-rail-clear` spans it; `.itflow-ov-stats` stays flex), and the attention items of `dashboardAttention()` and `clientOverviewAttention()` take `one`, used when the count is 1. `formatAssignee()` highlights unassigned in warning, `ticketBillableHtml()` draws not billable in `bg-body-secondary`, and `ticketSlaState()` gives `breached` for an open ticket with a `ticket_response_sla_met` or `ticket_resolution_sla_met` of 0 or a deadline in the past. `includes/filter_footer.php` links the first, last and neighboring pages with an ellipsis between, in place of every tenth page. A list row's `tagPills()` sits in `.itflow-tags-row`, hidden by CSS until it holds a tag, and `tagMenuItem()` (`functions/tags.php`) puts Tags in the row's menu - a `data-tag-picker` button, the panel hung off the menu's toggle. `tagSpot()` is an untagged card's empty spot (the Files grid, the tickets board); spots drawn without a + carry `data-tag-plain`, kept by the picker's redraw. `agent/includes/inc_client_top_head.php` passes `$can_edit` false. `categoryAddButtonHtml()` and `quickAddButton()` are called with their default `btn-outline-secondary` everywhere. `js/app.js` focuses the dialog again on the next tick when AdminLTE's `shown.bs.modal` handler has put focus on its `.btn-close`.
- Starter content: `starterRenamed()` in `admin/post/starter_content_model.php` maps a starter item's old name, keyed as `starterExistingNames()` keys it, to its new one. Tags and canned responses here under the old name count as present (`starterExistingRenamed()`, `starterCannedResponseNames()`), `starterUpdateCannedResponses()` renames one before replacing it, and `demoAttachTags()` falls back to the old tag name. `demoDataRenamed()` holds the demo products' old name and description and the errand trip's old purpose; `demoProductId()` finds a demo product either way for load and removal, and a load renames an old one in place.
- `admin/starter_content.php` is rebuilt on the Maintenance page layout (a hero card, then the packs as a `list-group` sharing Get started's `.itflow-gs-pack-icon` and `.itflow-gs-pack-about`, and an At a glance card); `.itflow-starter-pack-cell` is gone. Update and Remove demo data are `confirm-link` buttons in place of `onsubmit` confirms.
- Starter content: `starterPackRecords()`, `starterPackHere()`, `starterPackUsed()`, `starterContentUnused()` and `starterClearUnused()` in `admin/post/starter_content_model.php`, `clear_starter_unused` in `admin/post/starter_content.php` (rechecked on post, with an Undo of the archive) and `admin/modals/starter_content/starter_clear.php`. A tag counts as used by any table with a `tag_id` or `*_tag_id` column (read from information_schema) or a seat count, a project template by its tickets' history line, and a category by `categoryUsage()` plus ticket templates, settings, RMM alerts, AI triage and child categories. `starterPickHtml()` takes `$open`; `js/starter_content.js` counts `data-starter-format="clear"` and sets up a pack in a window as it opens.
diff --git a/agent/assets.php b/agent/assets.php
index 71828bee8..9bb77dd16 100644
--- a/agent/assets.php
+++ b/agent/assets.php
@@ -624,8 +624,8 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
diff --git a/agent/js/ticket_reply_extras.js b/agent/js/ticket_reply_extras.js
index 3686587cb..b0951efdd 100644
--- a/agent/js/ticket_reply_extras.js
+++ b/agent/js/ticket_reply_extras.js
@@ -22,8 +22,10 @@
var composer = document.getElementById('replyComposer');
var status = form.querySelector('[data-reply-draft-status]');
+ // Only once it is ready - reading an editor still starting up throws
function editor() {
- return window.tinymce ? tinymce.get('ticket_reply') : null;
+ var ed = window.tinymce ? tinymce.get('ticket_reply') : null;
+ return ed && ed.initialized ? ed : null;
}
function content() {
diff --git a/agent/kb.php b/agent/kb.php
index cfce12c8f..e70452781 100644
--- a/agent/kb.php
+++ b/agent/kb.php
@@ -291,7 +291,7 @@ $csrf = $_SESSION['csrf_token'];