Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/3.1.3' into develop
Browse files Browse the repository at this point in the history
Conflicts:
	system/docs/CHANGELOG.md
  • Loading branch information
leofeyer committed Sep 17, 2013
2 parents f787b83 + 05fd02d commit 1862137
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Resources/contao/dca/tl_calendar_events.php
Original file line number Diff line number Diff line change
Expand Up @@ -904,18 +904,19 @@ public function generateFeed()
* modified (edit/editAll), moved (cut/cutAll) or deleted (delete/deleteAll).
* Since duplicated events are unpublished by default, it is not necessary
* to schedule updates on copyAll as well.
* @param \DataContainer
*/
public function scheduleUpdate()
public function scheduleUpdate(DataContainer $dc)
{
// Return if there is no ID
if (!CURRENT_ID || Input::get('act') == 'copy')
if (!$dc->activeRecord || !$dc->activeRecord->pid || Input::get('act') == 'copy')
{
return;
}

// Store the ID in the session
$session = $this->Session->get('calendar_feed_updater');
$session[] = CURRENT_ID;
$session[] = $dc->activeRecord->pid;
$this->Session->set('calendar_feed_updater', array_unique($session));
}

Expand Down

0 comments on commit 1862137

Please sign in to comment.