Changeset 1406


Ignore:
Timestamp:
Jan 4, 2014, 1:50:01 AM (4 years ago)
Author:
dkg
Message:

correct workshop creation from proposal

Location:
trunk/jpdd
Files:
2 edited

Legend:

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

    r1403 r1406  
    198198      // create the workshop based on this proposal
    199199      $map = $jpdd->prepClass('workshop');
    200       $workshop = $map['classname'](array());
    201       $workshop->_title = $this->_title;
    202       $workshop->_short_title = $this->_short_title;
    203       $workshop->_description = $this->_description;
    204       $workshop->_private_notes = $this->_private_notes;
    205       $workshop->_min_attendees = $this->_min_attendees;
    206       $workshop->_max_attendees = $this->_max_attendees;
    207       $workshop->_event_id = $this->_event_id;
    208       $workshop->_proposal_id = $this->_proposal_id;
     200      $args = array('title' => $this->_title,
     201                    'short_title' = $this->_short_title,
     202                    'description' = $this->_description,
     203                    'private_notes' = $this->_private_notes,
     204                    'min_attendees' = $this->_min_attendees,
     205                    'max_attendees' = $this->_max_attendees,
     206                    'event_id' = $this->_event_id,
     207                    'proposal_id' = $this->_proposal_id);
     208      $workshop = new $map['classname']($args);
    209209      $workshop->handleCreation();
    210210
  • trunk/jpdd/class.jpdd.workshop.php

    r1403 r1406  
    161161                               $jpdd->getActiveEventID().', '.
    162162                               $jpdd->intOrDefault($this->_room_id).', '.
    163                                $jpdd->intOrDefault($this->_proposal_id).', '.
     163                               $jpdd->intOrDefault($this->_proposal_id).
    164164                               ')', false);
    165165          if (false === $res) {
Note: See TracChangeset for help on using the changeset viewer.