From: <gem...@li...> - 2012-02-15 13:59:47
|
Revision: 479 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=479&view=rev Author: mennodekker Date: 2012-02-15 13:59:36 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Reuse transaltion from suvey completed event :) And provide changed values only Modified Paths: -------------- branches/1.5.x/library/classes/Gems/Tracker/Model/TrackModel.php branches/1.5.x/library/classes/Gems/Tracker/RespondentTrack.php Modified: branches/1.5.x/library/classes/Gems/Tracker/Model/TrackModel.php =================================================================== --- branches/1.5.x/library/classes/Gems/Tracker/Model/TrackModel.php 2012-02-15 13:32:43 UTC (rev 478) +++ branches/1.5.x/library/classes/Gems/Tracker/Model/TrackModel.php 2012-02-15 13:59:36 UTC (rev 479) @@ -124,7 +124,7 @@ if ($detailed) { $this->setIfExists('gtr_completed_event', - 'label', $this->translate->_('Track completion event'), + 'label', $this->translate->_('After completion'), 'multiOptions', $this->loader->getEvents()->listTrackCompletionEvents()); } Modified: branches/1.5.x/library/classes/Gems/Tracker/RespondentTrack.php =================================================================== --- branches/1.5.x/library/classes/Gems/Tracker/RespondentTrack.php 2012-02-15 13:32:43 UTC (rev 478) +++ branches/1.5.x/library/classes/Gems/Tracker/RespondentTrack.php 2012-02-15 13:59:36 UTC (rev 479) @@ -143,7 +143,8 @@ $values['gr2t_end_date'] = $tokenSelect->fetchOne(); - //Handle TrackCompletionEvent + //Handle TrackCompletionEvent, send only changed fields in $values array + $this->tracker->filterChangesOnly($this->_respTrackData, $values); $this->handleTrackCompletion($values, $userId); } else { $values['gr2t_end_date'] = null; @@ -628,7 +629,7 @@ /** * Find out if there are track completion events and delegate to the event if needed * - * @param array $values + * @param array $values The values changed before entering this event * @param int $userId */ public function handleTrackCompletion(&$values, $userId) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |