Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.6.12, 4.7.1
-
Fix Version/s: 4.7.8
-
Component/s: Core CiviCRM
-
Labels:None
-
Documentation Required?:None
-
Funding Source:Core Team Funds
Description
Steps to reproduce:
- Create a Custom data set with a file field
- Add custom data to a contact (or other entity) with attached file
- Delete file
File is deleted as expected, however leaves a notice in the log such as:
Notice: Undefined index: tag_id in CRM_Core_BAO_EntityTag::del() (line 120 of /home/civicrm-dev/public_html/sites/all/modules/civicrm/CRM/Core/BAO/EntityTag.php).
On investigation this appears to be a protocol issue between CRM_Core_BAO_File::deleteEntityFile which does not provide a tag_id and CRM_Core_BAO_EntityTag::del which assumes one is available for its post hook.
Not sure which function is wrong.