Merge pull request #195 from qunabucom/master

Allow more sophisticated trackview as data extension
This commit is contained in:
Robbie Averill 2017-08-16 22:20:32 +12:00 committed by GitHub
commit 2922e83dc1

View File

@ -235,6 +235,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
$this->ViewCount = $count; $this->ViewCount = $count;
DB::query("UPDATE \"DMSDocument\" SET \"ViewCount\"='$count' WHERE \"ID\"={$this->ID}"); DB::query("UPDATE \"DMSDocument\" SET \"ViewCount\"='$count' WHERE \"ID\"={$this->ID}");
$this->extend('trackView');
} }
return $this; return $this;