Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Empty id in list #193

Open
wants to merge 1 commit into from

1 participant

Pavel Levin
Pavel Levin

You should trim $_POST['user_invitees'] with space character too, because you add space character to $_POST['user_invitees'] in line 270, 276, 280. If you didn't trim space charcter - $userInvitess list of id will contain empty id (space character). Then when you add relationship for this empty id in line 436, this may cause error in Link2:add method (data/Link2.php:483)

Pavel Levin Cosmologist Update CallFormBase.php
You should trim $_POST['user_invitees'] with space character too, because you add space character to $_POST['user_invitees'] in line 270, 276, 280. If you didn't trim space charcter - $userInvitess list of id will contain empty id (space character). Then when you add relationship for this empty id in line 436, this may cause error in Link2:add method (data/Link2.php:483)
6943fce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 18, 2014
  1. Pavel Levin

    Update CallFormBase.php

    Cosmologist authored
    You should trim $_POST['user_invitees'] with space character too, because you add space character to $_POST['user_invitees'] in line 270, 276, 280. If you didn't trim space charcter - $userInvitess list of id will contain empty id (space character). Then when you add relationship for this empty id in line 436, this may cause error in Link2:add method (data/Link2.php:483)
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  modules/Calls/CallFormBase.php
2  modules/Calls/CallFormBase.php
View
@@ -301,7 +301,7 @@ function handleSave($prefix,$redirect=true,$useRequired=false) {
///////////////////////////////////////////////////////////////////////////
//// REMOVE INVITEE RELATIONSHIPS
if(!empty($_POST['user_invitees'])) {
- $userInvitees = explode(',', trim($_POST['user_invitees'], ','));
+ $userInvitees = explode(',', trim($_POST['user_invitees'], ', '));
} else {
$userInvitees = array();
}
Something went wrong with that request. Please try again.