Browse Source

fix soft delete documentation

Maurits van der Schee 8 years ago
parent
commit
a522bccb98
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      README.md

+ 1
- 1
README.md View File

@@ -770,7 +770,7 @@ The 'before' function allows modification of the request parameters and can (for
770 770
 'before'=>function(&$cmd, &$db, &$tab, &$id, &$in) { 
771 771
 	if ($cmd == 'delete') {
772 772
 		$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()));
774 774
 	}
775 775
 },
776 776
 'column_authorizer'=>function($cmd, $db ,$tab, $col) { 

Loading…
Cancel
Save