Fixing bug when adding the reg_reguest_rate entries.
console.log( timeId );
// Check to see if the time is already in the collection
// If it is then do nothing
- console.log(this.model.regTimes);
+ console.log(this.model.regTimes.length);
var findRegTime = this.model.regTimes.where({ id: timeId });
console.log(findRegTime.length);
console.log( timeId );
// Check to see if the time is already in the collection
// If it is then do nothing
- console.log(this.model.regTimes);
+ console.log(this.model.regTimes.length);
var findRegTime = this.model.regTimes.where({ id: timeId });
console.log(findRegTime.length);
FROM " .GLM_MEMBERS_REGISTRATIONS_PLUGIN_DB_PREFIX . "reg_request_rate
WHERE reg_event = %d
AND rate = %d
- AND reg_request = %d",
+ AND reg_request = %d
+ AND reg_request_class = %d",
$modelData['reg_event'],
$modelData['reg_rate'],
- $modelData['reg_request']
+ $modelData['reg_request'],
+ $regRequestClassId
)
);
// At this point we need to get the rate data
foreach ( $regEvent['reg_class'] as $key => $rClass ) {
// Pull the rate data
if ( isset( $rClass['times'] ) && is_array( $rClass['times'] ) && count( $rClass['times'] ) > 0 ) {
+ // echo '<pre>$rClass[times]: ' . print_r( $rClass['times'], true ) . '</pre>';
foreach ( $rClass['times'] as &$time ) {
$rClass['loggedIn'] = ( isset($_SESSION['LoginAccount']) ) ? true : false;
$rClass['reg_rate_id'] = $time['id'];