Skip to content
Snippets Groups Projects

hotline#191593 : ArteVOD : donot delete records unless update is ON

All threads resolved!
Compare and Show latest version
1 file
+ 2
2
Preferences
Compare changes
@@ -72,8 +72,8 @@ class ArteVod_Service extends Class_DigitalResource_Service {
protected function _deleteNonHarvested(){
if ($this->_config->getAdminVar('BATCH_UPDATE_NOTICE'))
Class_Album::deleteQuery()
->start('type_doc_id', self::CATEGORY_LABEL)
->lt('date_maj',$this->addDaysToCurrentDate(-1))
->start('type_doc_id', static::CATEGORY_LABEL)
->lt('date_maj', $this->addDaysToCurrentDate(-1))
->deleteAll();
return $this;