feat(ticket): editable TO/CC send form (backport PR #38391) + empty compose for private messages#753
Merged
Merged
Conversation
… empty compose for private messages Backport of Dolibarr core PR Dolibarr#38391: the ticket send-message form now exposes editable TO and CC fields (free input + multiselect of linked contacts) instead of a read-only recipient list, and newMessage()/sendTicketMessageByEmail() honour the user selection (receiver[]/sendto, receivercc[]/sendtocc). Adapted to 21.0 (back-office send path). Also: a private ticket message opens with an empty compose field instead of being prefilled with the template personal signature; an email message keeps the template. Fixes the annoyance of the personal signature being auto-inserted for private notes. All changes wrapped in @ATM-PATCH markers (slugs ticket-editable-recipients, ticket-private-empty-compose) for easy re-port on the next major-version upgrade: git grep '@ATM-PATCH' -- htdocs/ Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Patch gamme sur le core (branche
21.0_atm). Toutes les zones modifiées sont encadrées par des marqueurs@ATM-PATCHpour re-portage à la prochaine MDV :git grep '@ATM-PATCH' -- htdocs/.1. Backport de la PR Dolibarr core Dolibarr#38391 — champs TO/CC éditables
Slug
ticket-editable-recipients.Le formulaire d'envoi de message sur ticket exposait une liste de destinataires en lecture seule. On le rend éditable, comme le
FormMailstandard :TICKET_SEND_INTERNAL_CC) + multiselect, rien pré-sélectionné.newMessage()(envoi externe back-office) litreceiver[]/sendtoetreceivercc[]/sendtoccet remplace le calcul auto des destinataires.sendTicketMessageByEmail()accepte une liste CC (nouveau paramètre rétro-compatible), transmise àCMailFile.Adapté à la 21.0 (la PR upstream vise
develop, structure différente). Périmètre : chemin back-office. Fichiers :htdocs/core/class/html.formticket.class.php,htdocs/ticket/class/ticket.class.php.2. Message privé = champ de saisie vide
Slug
ticket-private-empty-compose.Un message privé s'ouvre désormais avec un champ vide au lieu d'être pré-rempli avec le template / la signature personnelle (
__USER_SIGNATURE__). Un message mail garde le template. La signature sortante reste ajoutée à l'envoi.Mappage sur les 2 boutons de
ticket/card.php: « Envoyer un mail » (send_email=1) → template ; « Ajouter un message privé » (pas desend_email) → vide.Test
Validé manuellement : envoi mail avec corps (corps préservé), message privé (champ vide au départ, texte enregistré).
🤖 Generated with Claude Code