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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
559b75c4
Commit
559b75c4
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
New: Add hidden option MAIN_FORCE_DEFAULT_STATE_ID.
parent
303cad16
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+2
-1
2 additions, 1 deletion
ChangeLog
htdocs/core/class/html.formcompany.class.php
+3
-2
3 additions, 2 deletions
htdocs/core/class/html.formcompany.class.php
with
5 additions
and
3 deletions
ChangeLog
+
2
−
1
View file @
559b75c4
...
...
@@ -61,7 +61,8 @@ For users:
- New: Can send an email from thirdparty card.
- New: Can cancel holidays that were previously validated.
- Fix: [bug #1022] correct margin calculation for credit notes.
- New: Can choose contact on event (action com) creation, and filtred by thirdparty
- New: Can choose contact on event (action com) creation, and filtred by thirdparty.
- New: Add hidden option MAIN_FORCE_DEFAULT_STATE_ID.
For translators:
- Qual: Normalized sort order of all languages files with english reference files.
...
...
This diff is collapsed.
Click to expand it.
htdocs/core/class/html.formcompany.class.php
+
3
−
2
View file @
559b75c4
...
...
@@ -203,7 +203,7 @@ class FormCompany
* un code donnee mais dans ce cas, le champ pays differe).
* Ainsi les liens avec les departements se font sur un departement independemment de son nom.
*
* @param string $selected Code state preselected
* @param string $selected Code state preselected
(mus be state id)
* @param string $country_codeid Country code or id: 0=list for all countries, otherwise country code or country rowid to show
* @param string $htmlname Id of department
* @return string String with HTML select
...
...
@@ -257,7 +257,8 @@ class FormCompany
}
}
if
(
$selected
>
0
&&
$selected
==
$obj
->
rowid
)
if
((
!
empty
(
$selected
)
&&
$selected
==
$obj
->
rowid
)
||
(
empty
(
$selected
)
&&
!
empty
(
$conf
->
global
->
MAIN_FORCE_DEFAULT_STATE_ID
)
&&
$conf
->
global
->
MAIN_FORCE_DEFAULT_STATE_ID
==
$obj
->
rowid
))
{
$out
.
=
'<option value="'
.
$obj
->
rowid
.
'" selected="selected">'
;
}
...
...
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