Add check on extra field type in update method - refs #2200

pull/2487/head
Yannick Warnier 8 years ago
parent b2a9a5c226
commit 3f83a92953
  1. 3
      main/inc/lib/extra_field.lib.php

@ -938,6 +938,9 @@ class ExtraField extends Model
if (isset($params['id'])) {
$field_option = new ExtraFieldOption($this->type);
$params['field_id'] = $params['id'];
if (empty($params['field_type'])) {
$params['field_type'] = $this->type;
}
$field_option->save($params);
}

Loading…
Cancel
Save