Skip to content

Commit a522bcc

Browse files
committed
fix soft delete documentation
1 parent 07e5ce5 commit a522bcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ The 'before' function allows modification of the request parameters and can (for
770770
'before'=>function(&$cmd, &$db, &$tab, &$id, &$in) {
771771
if ($cmd == 'delete') {
772772
$cmd = 'update'; // change command to update
773-
$in->deleted = date('Y-m-d H:i:s', time());
773+
$in = (object)array('deleted' => date('Y-m-d H:i:s', time()));
774774
}
775775
},
776776
'column_authorizer'=>function($cmd, $db ,$tab, $col) {

0 commit comments

Comments
 (0)