ZP-692 Different cutoff dates. Released under the Affero GNU General Public...

ZP-692 Different cutoff dates. Released under the Affero GNU General Public License (AGPL) version 3.
parent 80c61fc1
......@@ -88,7 +88,19 @@ class DiffState implements IChanges {
*/
public function ConfigContentParameters($contentparameters) {
$this->contentparameters = $contentparameters;
$this->cutoffdate = Utils::GetCutOffDate($contentparameters->GetFilterType());
$filtertype = $contentparameters->GetFilterType();
switch($contentparameters->GetContentClass()) {
case "Email":
case "Calendar":
$this->cutoffdate = ($filtertype === false) ? 0 : Utils::GetCutOffDate($filtertype);
break;
case "Contacts":
case "Tasks":
default:
$this->cutoffdate = 0;
break;
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment