Changeset 1415


Ignore:
Timestamp:
Jan 4, 2014, 2:39:40 AM (4 years ago)
Author:
dkg
Message:

extract the proposal correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jpdd/class.jpdd.workshop.php

    r1414 r1415  
    356356        return null;
    357357      global $jpdd;
    358       $jpdd->prepClass('proposal');
    359       $sql = 'SELECT * from proposal WHERE id = '.(int)$this->_proposal_id;
    360       return $jpdd->getSeriesFromSQL($sql, 'JPDD_Proposal');
     358      $map = $jpdd->prepClass('proposal');
     359      return new $map['classname'](array('id' => (int)$this->_proposal_id));
    361360    }
    362361
Note: See TracChangeset for help on using the changeset viewer.