When deleting a career also delete the extra fields see BT#12861

pull/2487/head
jmontoyaa 8 years ago
parent aecd074bf5
commit 4f3dd5c01b
  1. 2
      main/inc/lib/career.lib.php

@ -251,6 +251,8 @@ class Career extends Model
{
$res = parent::delete($id);
if ($res) {
$extraFieldValues = new ExtraFieldValue('career');
$extraFieldValues->deleteValuesByItem($id);
Event::addEvent(
LOG_CAREER_DELETE,
LOG_CAREER_ID,

Loading…
Cancel
Save