Fix Screen Template Owner Display by sanjacornelius · Pull Request #7960 · ProcessMaker/processmaker
Issue & Reproduction Steps
Resolves an issue where screen templates without an owner displayed 'unclaimed' instead of the default 'ProcessMaker' text.
The screen template listing page was using the default datatable.js transform method which had usePmDefaultLabel set to false. This caused ownerless templates to display as 'unclaimed' instead of the desired default text 'ProcessMaker'.
Solution
- Added a custom
transformmethod in the screen template listing component - Enabled
usePmDefaultLabelproperty to ensure proper owner text formatting
How to Test
- Populate the 'Shared Templates' tab:
php artisan processmaker:sync-screen-templates - Navigate to Designer > Screens > Shared Templates tab
- Verify the 'Owner' column displays correctly
Expected Results
- Screen templates without an assigned owner should display 'ProcessMaker' in the Owner column
- Screen templates with assigned owners should display the owner's name
Related Tickets & Packages
Code Review Checklist
- I have pulled this code locally and tested it on my instance, along with any associated packages.
- This code adheres to ProcessMaker Coding Guidelines.
- This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
- This solution fixes the bug reported in the original ticket.
- This solution does not alter the expected output of a component in a way that would break existing Processes.
- This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
- This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
- This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
- This ticket conforms to the PRD associated with this part of ProcessMaker.