daomapsieucap/fiber-admin

Sanitizing filename causes wrong local json filename in ACF

daomapsieucap opened this issue · 0 comments

Wrong conditional logic in function fiad_cleanup_attachment_name replace the filename from group_6554a45dbcf1f.json to group-6554a45dbcf1f.json which makes ACF can't delete the local ACF json. Deleted json files still exist in folder so the field group can't be deleted and it displays in Sync available tab.

The condition here should be updated and optimized just to rename the attachment files only.

Screenshot-1700046086