/** * Store the value of this relation. * * @param mixed $notused * @param array $record * @param string $mode * * @return bool Did the store went successfull? */ public function store($notused, &$record, $mode) { $rec = $record[$this->fieldName()]; $record[$this->fieldName()] = $record[$this->fieldName()]['selected']; $res = parent::store($notused, $record, $mode); $record[$this->fieldName()]['selected'] = $rec['selected']; return $res; }