So I’m working on a custom override, and testing it on 7.12.7.
view.edit.php file looks like
if(in_array('Admin',$roles) || in_array('Leadership',$roles)){
$metadataFile = 'custom/modules/SGF_Participant_Related_Purchases/metadata/editviewdefs.php';
$this->ev = $this->getEditView();
}
elseif ($denied==1) {
$metadataFile = 'custom/modules/SGF_Participant_Related_Purchases/metadata/fulllockedviewdefs.php';
$this->ev = $this->getEditView();
$this->ev->view = 'FullLockedView';
}
else {
$metadataFile = 'custom/modules/SGF_Participant_Related_Purchases/metadata/lockededitviewdefs.php';
$this->ev = $this->getEditView();
$this->ev->view = 'LockedView';
}
$this->ev->ss =& $this->ss;
$this->ev->setup($this->module, $this->bean, $metadataFile, get_custom_file_if_exists('include/EditView/EditView.tpl'));
}
Custom view names are a copy of the editviewdefs.php file with the view name changed. Logic built around it works and such, but the problem is on the two custom views - there are no save or cancel butons. I’ve tried a couple of ways of just adding the buttons based on the array set up in other modules, but still no luck.
What am I missing there?