diff --git a/inc/targetticket.class.php b/inc/targetticket.class.php index 865256c0c..2d0f43e91 100644 --- a/inc/targetticket.class.php +++ b/inc/targetticket.class.php @@ -977,8 +977,10 @@ protected function setTargetLocation($data, $formanswer) { 'plugin_formcreator_questions_id' => $this->fields['location_question'] ] ])->current(); - if (isset($location['answer']) && ctype_digit($location['answer'])) { + if (isset($location['answer']) && !Location::isNewID($location['answer'])) { $location = $location['answer']; + } else { + $location = null; } break; case self::LOCATION_RULE_SPECIFIC: