Skip to content

Commit

Permalink
Node::preAdd must have the $mode variable (defaults to 'add')
Browse files Browse the repository at this point in the history
  • Loading branch information
michelerota committed Mar 23, 2017
1 parent 2284484 commit e0d894d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Core/Node.php
Expand Up @@ -3887,10 +3887,12 @@ public function postAdd($record, $mode = 'add')
* be saved.
*
* @param array $record The record that will be saved to the database.
* @param string $mode The 'mode' indicates whether the added record was a
* completely new record ("add") or a copy ("copy").
*
* @return bool
*/
public function preAdd(&$record)
public function preAdd(&$record, $mode = 'add')
{
// Do nothing
return true;
Expand Down

0 comments on commit e0d894d

Please sign in to comment.