/** * Duplicate a particular record of the current table * @param boolean */ public function copy($blnDoNotRedirect = false) { if ($this->Input->get('gid') != '') { $this->set['gid'] = (int) $this->Input->get('gid'); } return parent::copy($blnDoNotRedirect); }