Bug with PHP8 when defining custom style in edit or detail view #5208

Open
opened 2026-02-20 16:31:25 -05:00 by deekerman · 0 comments
Owner

Originally created by @QuickCRM on GitHub (Jun 15, 2024).

Issue

When you add a custom style in a detail or edit view, a PHP error is thrown in include/Smarty/plugins/block.minify.php due to undefined X
example:
'customCode' => '<span style="background-color: lime;">@@FIELD@@</span>',

Possible Fix

No response

Steps to Reproduce the Issue

1. add a custom style to any field in any edit or detail view
2. run Repair / Quick Repair
3. open the view
...

Context

No response

Version

7.14

What browser are you currently using?

Chrome

Browser Version

Any

Environment Information

PHP 8.2

Operating System and Version

Any

Originally created by @QuickCRM on GitHub (Jun 15, 2024). ### Issue When you add a custom style in a detail or edit view, a PHP error is thrown in include/Smarty/plugins/block.minify.php due to undefined X example: ` 'customCode' => '<span style="background-color: lime;">@@FIELD@@</span>',` ### Possible Fix _No response_ ### Steps to Reproduce the Issue ```bash 1. add a custom style to any field in any edit or detail view 2. run Repair / Quick Repair 3. open the view ... ``` ### Context _No response_ ### Version 7.14 ### What browser are you currently using? Chrome ### Browser Version Any ### Environment Information PHP 8.2 ### Operating System and Version Any
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5208
No description provided.