[Vtigercrm-commits] [vtiger development] #6269: Permit stoping the save event from the beforesave event handler
vtiger development
vtiger-tickets at trac.vtiger.com
Tue Aug 25 14:15:29 EDT 2009
#6269: Permit stoping the save event from the beforesave event handler
---------------------------------+------------------------------------------
Reporter: joebordes | Owner: developer
Type: enhancement | Status: new
Priority: unassigned | Milestone: 5.2.0
Component: vtlib | Version: 5.1.0
Keywords: event handler vtlib |
---------------------------------+------------------------------------------
http://forums.vtiger.com/viewtopic.php?t=26696
Prevent vTiger from saving a dataset during the beforesave phase of the
event handler.
e.g:
{{{
class VeranstaltungenHandler extends VTEventHandler {
function handleEvent($eventName, $data) {
if($eventName == 'vtiger.entity.beforesave') {
// Entity is about to be saved, take required action
//checking conditions on database
//in case condition is not met: STOP SAVING,
// GIVE ERROR MESSAGE
}
}
}
}}}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6269>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list