Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
bibliossimo
opacce
Commits
113f8d83
Commit
113f8d83
authored
May 18, 2018
by
Laurent
Browse files
dev #74958 set default value for item zone id_origine
parent
e12a60ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/DataProfileControllerTest.php
...n/modules/cosmo/controllers/DataProfileControllerTest.php
+6
-0
library/Class/ProfilePrefs.php
library/Class/ProfilePrefs.php
+3
-1
No files found.
cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/DataProfileControllerTest.php
View file @
113f8d83
...
...
@@ -1126,6 +1126,12 @@ class Cosmo_DataProfileControllerMultiValuesTest extends Cosmo_DataProfileContro
}
/** @test */
public
function
scriptShouldSetMutiInputsItemIdOrigineTo001
()
{
$this
->
assertXPathContentContains
(
'//script'
,
'values:{"id_origine_zone":["001"],"id_origine_champ":[null]}'
);
}
/** @test */
public
function
docTypeWithLabelSkipsShouldHaveAllItsValues
()
{
$this
->
assertXPathContentContains
(
'//script'
,
'values:{"1_label":["am","bm","","em","mm","","","","","","",""],"1_zone":["BDA","BDJ","LFA","LFJ","LDA","LDJ","LCDA","LCDJ","PATIMP","PATMS","PERIP","PATINC"]}'
,
...
...
library/Class/ProfilePrefs.php
View file @
113f8d83
...
...
@@ -152,7 +152,9 @@ class Class_ProfilePrefs extends Class_Entity {
public
function
getItemIdOrigine
()
{
$id_origine_zone
=
$this
->
getItemIdOrigineZone
();
$id_origine_zone
=
$this
->
getItemIdOrigineZone
()
?
$this
->
getItemIdOrigineZone
()
:
'001'
;
$id_origine_champ
=
$this
->
getItemIdOrigineChamp
();
return
[
'id_origine_zone'
=>
[
$id_origine_zone
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment