Changeset 1410


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

improve workshop insertions

Location:
trunk/jpdd
Files:
2 edited

Legend:

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

    r1409 r1410  
    204204      // create the workshop based on this proposal
    205205      $map = $jpdd->prepClass('workshop');
    206       $workshop = new $map['classname'](array('proposal_id' => $this->getID()));
     206      $workshop = new $map['classname'](array('data' => array('proposal_id' => $this->getID())));
    207207      $workshop->handleCreation();
    208208
  • trunk/jpdd/class.jpdd.workshop.php

    r1406 r1410  
    119119          $this->_min_attendees = $_POST['min_attendees'];
    120120          $this->_max_attendees = $_POST['max_attendees'];
    121       $this->_room_id = $_POST['room_id'];
     121      $this->_room_id = (array_key_exists('room_id', $_POST) ? $_POST['room_id'] : NULL);
    122122        }
    123123
Note: See TracChangeset for help on using the changeset viewer.