function prepareVariables($variables) { $variables["getid"] = $variables["attachmentid"]; //to fix the get record problem return parent::prepareVariables($variables); }