mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
Merge pull request #195 from qunabucom/master
Allow more sophisticated trackview as data extension
This commit is contained in:
commit
2922e83dc1
@ -235,6 +235,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
||||
$this->ViewCount = $count;
|
||||
|
||||
DB::query("UPDATE \"DMSDocument\" SET \"ViewCount\"='$count' WHERE \"ID\"={$this->ID}");
|
||||
|
||||
$this->extend('trackView');
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
Loading…
Reference in New Issue
Block a user