Blog Sections Open
Making mm_requireFields Work with Dropdown TVs in ManagerManager
A small ManagerManager patch that lets mm_requireFields validate dropdown fields the same way it already validates text inputs and textareas.
mm_requireFields is often used to block incomplete manager forms, but older setups may validate text fields and textareas while silently ignoring dropdowns. The fix is small and safe: add the selector for select elements to the helper function.
Where to Patch It
Open the ManagerManager file below and locate the mm_requireFields function:
/assets/plugins/managermanager/functions/fields.inc.php
After the textarea and input cases, add support for the select field type:
case 'textarea':
$selector = "textarea[name=$fieldname]";
break;
case 'input':
$selector = "input[type=text][name=$fieldname]";
break;
case 'select':
$selector = "select[name=$fieldname]";
break;
Many Evolution CMS editors rely on dropdown TVs for status, category, type, and other controlled values. If those fields are required but never validated, managers can save incomplete content without noticing the problem.
Restoring Search-Term Highlighting After an AjaxSearch Result Click
Why AjaxSearch highlights the keyword in the results list but not on the destination page, and what to preserve so the target resource can still highlight the query.
Handling Multiple File Attachments in FormIt
If one attachment works but two break the whole form, the mail and upload pipeline probably still assumes a single-file field.