Photo model. Small fix to update()
pass `$old_fields` param to `DBA::update()`
This commit is contained in:
parent
b7b3086263
commit
15b0a7a4d8
|
@ -306,6 +306,7 @@ class Photo extends BaseObject
|
|||
return $r;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Delete info from table and data from storage
|
||||
*
|
||||
|
@ -362,7 +363,7 @@ class Photo extends BaseObject
|
|||
|
||||
$fields['edited'] = DateTimeFormat::utcNow();
|
||||
|
||||
return DBA::update("photo", $fields, $conditions);
|
||||
return DBA::update("photo", $fields, $conditions, $old_fields);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user