Happy New Year Nicholas!
I think I hit a small bug in trying to add attachments to a ticket in the backend of ATS.
Feel free to let me know if I am in error if there is another fix for this.
Thanks,
Brian
Problem
When adding a reply to a ticket in the admin backend, the Attachments subform displays the repeatable rows with +/- buttons, but the file input field ("Choose File" button) does not render inside each row.
Root Cause
Layout path mismatch between the form definition and the actual layout file location:
-
Form XML (administrator/components/com_ats/forms/post_new.xml:61) specifies:
-
layout="akeeba.ats.field.file"
-
-
Admin layout file exists at:
-
administrator/components/com_ats/layouts/akeeba/ats/fields/file.php(Note:
fieldsplural)
-
-
Frontend layout file correctly exists at:
-
components/com_ats/layouts/akeeba/ats/field/file.php(Note:
fieldsingular)
-
The admin layout directory uses fields (plural) while the form XML and frontend use field (singular). Joomla cannot locate the layout, so the file input doesn't render.
Fix
Rename the admin layout directory from fields to field:
administrator/components/com_ats/layouts/akeeba/ats/fields/
→
administrator/components/com_ats/layouts/akeeba/ats/field/