projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3043e55
)
Allows users to add more than one entreprise at the same time (better version).
author
Stéphane Jacob
<jacou@melix.net>
Sun, 14 Dec 2008 17:49:32 +0000
(18:49 +0100)
committer
Stéphane Jacob
<jacou@melix.net>
Sun, 14 Dec 2008 21:27:42 +0000
(22:27 +0100)
include/validations/entreprises.inc.php
patch
|
blob
|
blame
|
history
diff --git
a/include/validations/entreprises.inc.php
b/include/validations/entreprises.inc.php
index
a329eaa
..
5f6e1be
100644
(file)
--- a/
include/validations/entreprises.inc.php
+++ b/
include/validations/entreprises.inc.php
@@
-54,7
+54,7
@@
class EntrReq extends Validate
$this->tel = $_tel;
$this->fax = $_fax;
- $_name =
str_replace(array("&", "(", ")", "-", "_", ",", ";", ".", ":", "/", "\\", "\'", "\""), " ", $_name
);
+ $_name =
preg_replace('/[^0-9a-z]/i', ' ', strtolower(replace_accent($_name))
);
$name = explode(" ", $_name);
$name_array = array_map("trim", $name);
$length = count($name_array);
@@
-73,7
+73,6
@@
class EntrReq extends Validate
. $where);
$this->suggestions = "| ";
while ($sug = $res->next()) {
- var_dump($sug);
$this->suggestions .= $sug['name'] . " | ";
}
}