From: <gem...@li...> - 2013-03-14 11:27:23
|
Revision: 1182 http://sourceforge.net/p/gemstracker/code/1182 Author: mennodekker Date: 2013-03-14 11:27:20 +0000 (Thu, 14 Mar 2013) Log Message: ----------- Added a field to track-maintenance -> show to display what group should answer the survey Modified Paths: -------------- trunk/library/classes/Gems/Default/TrackMaintenanceAction.php trunk/library/classes/Gems/Tracker/Engine/TrackEngineAbstract.php trunk/library/classes/Gems/Tracker/Engine/TrackEngineInterface.php Modified: trunk/library/classes/Gems/Default/TrackMaintenanceAction.php =================================================================== --- trunk/library/classes/Gems/Default/TrackMaintenanceAction.php 2013-03-14 11:05:26 UTC (rev 1181) +++ trunk/library/classes/Gems/Default/TrackMaintenanceAction.php 2013-03-14 11:27:20 UTC (rev 1182) @@ -309,6 +309,8 @@ $trackId = $this->_getIdParam(); $engine = $tracker->getTrackEngine($trackId); $model = $engine->getRoundModel(false, $action); + $model->addLeftTable('gems__surveys', array('gro_id_survey' => 'gsu_id_survey')); + $model->set('gsu_id_primary_group', 'label', $this->_('Group'), 'multiOptions', $this->util->getDbLookup()->getGroups()); } break; case "fields": { Modified: trunk/library/classes/Gems/Tracker/Engine/TrackEngineAbstract.php =================================================================== --- trunk/library/classes/Gems/Tracker/Engine/TrackEngineAbstract.php 2013-03-14 11:05:26 UTC (rev 1181) +++ trunk/library/classes/Gems/Tracker/Engine/TrackEngineAbstract.php 2013-03-14 11:27:20 UTC (rev 1182) @@ -425,12 +425,11 @@ /** * Create model for rounds. Allowes overriding by sub classes. * - * @return MUtil_Model_ModelAbstract + * @return Gems_Model_JoinModel */ protected function createRoundModel() { - $model = new MUtil_Model_TableModel('gems__rounds'); - Gems_Model::setChangeFieldsByPrefix($model, 'gro'); + $model = new Gems_Model_JoinModel('rounds', 'gems__rounds', 'gro'); return $model; } Modified: trunk/library/classes/Gems/Tracker/Engine/TrackEngineInterface.php =================================================================== --- trunk/library/classes/Gems/Tracker/Engine/TrackEngineInterface.php 2013-03-14 11:05:26 UTC (rev 1181) +++ trunk/library/classes/Gems/Tracker/Engine/TrackEngineInterface.php 2013-03-14 11:27:20 UTC (rev 1182) @@ -215,7 +215,7 @@ * * @param boolean $detailed Create a model for the display of detailed item data or just a browse table * @param string $action The current action - * @return MUtil_Model_ModelAbstract + * @return Gems_Model_JoinModel */ public function getRoundModel($detailed, $action); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |