Fix #206
Fix #206

Added conditional statement to check if the table_name is campaign_log and if so refactor queries slightly to use activity_date instead of date_entered on both new and modified records to prevent query failure. Previously the query failed when workflows were setup to be triggered by Campaign Logs as the date_entered field does not exist in that table and instead there is an activity_date field.

lionixevolve/LionixCRM,gody01/SuiteCRM,gcoop-libre/SuiteCRM,daniel-samson/SuiteCRM,pgorod/SuiteCRM,Dillon-Brown/SuiteCRM,samus-aran/SuiteCRM,samus-aran/SuiteCRM,lionixevolve/LionixCRM,salesagility/SuiteCRM,noelhunter/SuiteCRM,pgorod/SuiteCRM,pgorod/SuiteCRM,daniel-samson/SuiteCRM,Dillon-Brown/SuiteCRM,horus68/SuiteCRM,horus68/SuiteCRM-Horus68,Dillon-Brown/SuiteCRM,pribeiro42/SuiteCRM,lionixevolve/LionixCRM,willrennie/SuiteCRM,salesagility-davidthomson/SuiteCRM,pribeiro42/SuiteCRM,willrennie/SuiteCRM,JanSiero/SuiteCRM,JanSiero/SuiteCRM,gcoop-libre/SuiteCRM,salesagility-davidthomson/SuiteCRM,gcoop-libre/SuiteCRM,willrennie/SuiteCRM,horus68/SuiteCRM,cumanacr/SuiteCRM,salesagility/SuiteCRM,dfstrauss/SuiteCRM,ChangezKhan/SuiteCRM,horus68/SuiteCRM-Horus68,horus68/SuiteCRM-Horus68,salesagility/SuiteCRM,lionixevolve/SuiteCRM,gcoop-libre/SuiteCRM,lionixevolve/SuiteCRM,JanSiero/SuiteCRM,JanSiero/SuiteCRM,dfstrauss/SuiteCRM,pribeiro42/SuiteCRM,samus-aran/SuiteCRM,daniel-samson/SuiteCRM,gody01/SuiteCRM,willrennie/SuiteCRM,MikeyJC/SuiteCRM,horus68/SuiteCRM,noelhunter/SuiteCRM,dfstrauss/SuiteCRM,lionixevolve/LionixCRM,samus-aran/SuiteCRM,daniel-samson/SuiteCRM,pgorod/SuiteCRM,MikeyJC/SuiteCRM,dfstrauss/SuiteCRM,salesagility-davidthomson/SuiteCRM,MikeyJC/SuiteCRM,cumanacr/SuiteCRM,lionixevolve/SuiteCRM,ChangezKhan/SuiteCRM,JimMackin/SuiteCRM,ChangezKhan/SuiteCRM,JimMackin/SuiteCRM,cumanacr/SuiteCRM,MikeyJC/SuiteCRM,pribeiro42/SuiteCRM,gody01/SuiteCRM,JimMackin/SuiteCRM,gody01/SuiteCRM,noelhunter/SuiteCRM,salesagility-davidthomson/SuiteCRM,Dillon-Brown/SuiteCRM,horus68/SuiteCRM-Horus68,cumanacr/SuiteCRM,lionixevolve/LionixCRM,lionixevolve/SuiteCRM,JimMackin/SuiteCRM,salesagility/SuiteCRM,ChangezKhan/SuiteCRM,lionixevolve/LionixCRM,noelhunter/SuiteCRM