fix soft delete documentation

This commit is contained in:
Maurits van der Schee 2017-03-17 03:05:35 +01:00
commit a522bccb98

View file

@ -770,7 +770,7 @@ The 'before' function allows modification of the request parameters and can (for
'before'=>function(&$cmd, &$db, &$tab, &$id, &$in) {
if ($cmd == 'delete') {
$cmd = 'update'; // change command to update
$in->deleted = date('Y-m-d H:i:s', time());
$in = (object)array('deleted' => date('Y-m-d H:i:s', time()));
}
},
'column_authorizer'=>function($cmd, $db ,$tab, $col) {