Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
f78e12d7
Commit
f78e12d7
authored
Oct 23, 2009
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Add test on url syntax
parent
6b5b2145
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/langs/en_US/companies.lang
+1
-0
1 addition, 0 deletions
htdocs/langs/en_US/companies.lang
htdocs/langs/fr_FR/companies.lang
+1
-0
1 addition, 0 deletions
htdocs/langs/fr_FR/companies.lang
htdocs/soc.php
+6
-0
6 additions, 0 deletions
htdocs/soc.php
with
8 additions
and
0 deletions
htdocs/langs/en_US/companies.lang
+
1
−
0
View file @
f78e12d7
# Dolibarr language file - en_US - companies
# Dolibarr language file - en_US - companies
CHARSET=UTF-8
CHARSET=UTF-8
ErrorBadEMail=EMail %s is wrong
ErrorBadEMail=EMail %s is wrong
ErrorBadUrl=Url %s is wrong
ErrorCompanyNameAlreadyExists=Company name %s already exists. Choose another one.
ErrorCompanyNameAlreadyExists=Company name %s already exists. Choose another one.
ErrorPrefixAlreadyExists=Prefix %s already exists. Choose another one.
ErrorPrefixAlreadyExists=Prefix %s already exists. Choose another one.
ErrorSetACountryFirst=Set the country first
ErrorSetACountryFirst=Set the country first
...
...
This diff is collapsed.
Click to expand it.
htdocs/langs/fr_FR/companies.lang
+
1
−
0
View file @
f78e12d7
# Dolibarr language file - fr_FR - companies
# Dolibarr language file - fr_FR - companies
CHARSET=UTF-8
CHARSET=UTF-8
ErrorBadEMail=e-mail %s invalide
ErrorBadEMail=e-mail %s invalide
ErrorBadUrl=Url %s invalide
ErrorCompanyNameAlreadyExists=Le nom de société %s existe déjà. Veuillez en choisir un autre.
ErrorCompanyNameAlreadyExists=Le nom de société %s existe déjà. Veuillez en choisir un autre.
ErrorPrefixAlreadyExists=Le préfixe %s existe déjà. Veuillez en choisir un autre.
ErrorPrefixAlreadyExists=Le préfixe %s existe déjà. Veuillez en choisir un autre.
ErrorSetACountryFirst=Définissez d'abord le pays
ErrorSetACountryFirst=Définissez d'abord le pays
...
...
This diff is collapsed.
Click to expand it.
htdocs/soc.php
+
6
−
0
View file @
f78e12d7
...
@@ -133,6 +133,12 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"])
...
@@ -133,6 +133,12 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"])
$soc
->
error
=
$langs
->
trans
(
"ErrorBadEMail"
,
$soc
->
email
);
$soc
->
error
=
$langs
->
trans
(
"ErrorBadEMail"
,
$soc
->
email
);
$_GET
[
"action"
]
=
$_POST
[
"action"
]
==
'add'
?
'create'
:
'edit'
;
$_GET
[
"action"
]
=
$_POST
[
"action"
]
==
'add'
?
'create'
:
'edit'
;
}
}
if
(
!
empty
(
$soc
->
url
)
&&
!
isValidUrl
(
$soc
->
url
))
{
$error
=
1
;
$soc
->
error
=
$langs
->
trans
(
"ErrorBadUrl"
,
$soc
->
url
);
$_GET
[
"action"
]
=
$_POST
[
"action"
]
==
'add'
?
'create'
:
'edit'
;
}
if
(
$soc
->
fournisseur
&&
!
$conf
->
fournisseur
->
enabled
)
if
(
$soc
->
fournisseur
&&
!
$conf
->
fournisseur
->
enabled
)
{
{
$error
=
1
;
$error
=
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment