fix soft delete documentation
This commit is contained in:
parent
07e5ce5e1f
commit
a522bccb98
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue