Commit Graph
4 Commits
Author SHA1 Message Date
alexandre_gain_mt3s 2060818ac1 fix(call-script): 500 on the list page - render the category title
The list rendered item.category.name. The Category entity has no getName()
(only getTitle()), so Twig fell back to CommonEntity::__call('name'), which
throws "Method name not exists" - a 500 as soon as a script had a category.

Use the same null-guarded item.category.title pattern as the program list.
2026-11-21 21:14:50 +01:00
alexandre_gain_mt3s 4fb36eebfc feat(call-script): add the Call Script component (0.19.0)
A new Mautic component, listed under Components > Call Scripts (/s/call-scripts),
built like the other domains on AbstractStandardFormController/FormModel.

- CallScript (mt3s_call_scripts): name, description, category, owner, status,
the publish window shown as start/end date and time, the HTML script with
dynamic tokens kept as typed (html cleaning mask), the calling window
(weekdays, hours, sentinel in the contact's or a fixed timezone) and the retry
policy (max attempts, delay, backoff: none/linear/exponential)
- CallScriptOutcome (mt3s_call_script_outcomes, ON DELETE CASCADE): label,
data type (checkbox/radio/free text/dropdown), options JSON ({value,label})
and position; nested collections reuse the program-collection JS
- validators: ValidCallingWindow, ValidCallScriptOutcomeOptions, and an atPath
option on EndDateAfterStartDate so its violation lands on publishDown
- config: routes, the Components menu item (parent mautic.core.components),
call_script category type, model alias, call_scripts permissions, version 0.19.0
- migration Version_0_19_0 creates both tables and their FKs immediately
(users/categories SET NULL, outcomes CASCADE), idempotent
- translations en_US/fr_FR, unit tests, readme/AGENTS documentation
2026-11-21 20:58:25 +01:00
alexandre_gain_mt3s 88256ca345 feat(menu): move UTM Taxonomies and Smart Links into the Marketing Programs menu (0.18.2)
The standalone top-level "Smart Links" menu group is removed: its two pages,
UTM Taxonomies then Smart Links, are now the last children of the
Marketing Programs menu (priorities 50 and 45).

- the root's access array gains the smart_links and taxonomies view
  permissions, so users with only Smart Links rights still get the menu
  (Mautic checks the parent's access before showing the group)
- the now-unused mt3s.smart_links.menu.root translation key is removed
  from the en_US and fr_FR catalogs
- routes, tables, permissions and URLs are unchanged
- version bumped to 0.18.2 (plugins:reload picks the menu change up)
2026-11-21 17:43:56 +01:00
alexandre_gain_mt3s 603e564037 fix(task): task creation broke on save - task_kind could reach the database as null
A new Task's taskKind property defaulted to null (the 0.18.x task rework), while
the task_kind column is NOT NULL: Doctrine writes every column explicitly, so
the column's own default never applied and any save whose form field did not
map failed with "1048 Column 'task_kind' cannot be null".

- Task::$taskKind now defaults to TaskKind::Task, like $status: the property
  is never null anymore and the getter is straight
- setTaskKind()/setStatus() accept null as "keep the current kind/status", so
  a missing form field can neither throw at mapping time nor wipe the value
- TaskType defaults an absent or empty taskKind to a regular task on PRE_SUBMIT
- regression tests: Tests/Unit/Entity/TaskTest.php
2026-11-21 14:31:49 +01:00