Commit d7ccf608 authored by Matheus Horstmann's avatar Matheus Horstmann 🐴

Issue#141: If phone2 is blank then phone turns to be empty not nil

Signed-off-by: Matheus Horstmann's avatarMatheus Horstmann <mch15@inf.ufpr.br>
parent 88a553cf
......@@ -188,8 +188,10 @@ class UploaderController < ApplicationController
deleteFromTransposed(index)
index = Array.new
@transposed[12].each_with_index do |phone,i|
if phone.to_s.length <= 14
if phone.blank?
@transposed[12][i] = ''
next
else
if not(phone =~ phone_regex)
......@@ -337,7 +339,6 @@ def upload_csv(file)
validateNumber(citiz)
validatePhone(citiz)
validateRG(citiz)
validateBirth(citiz)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment