Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSE
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
open-source
OSE
Commits
5f88e02b
Commit
5f88e02b
authored
Nov 10, 2020
by
Antony Le Courtes
Browse files
Options
Downloads
Patches
Plain Diff
Test MigrationStatutAutres.php plus simple
parent
e0ad9d12
No related branches found
No related tags found
1 merge request
!55
Ll bug report services
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
admin/migration/MigrationStatutAutres.php
+1
-20
1 addition, 20 deletions
admin/migration/MigrationStatutAutres.php
with
1 addition
and
20 deletions
admin/migration/MigrationStatutAutres.php
+
1
−
20
View file @
5f88e02b
...
@@ -19,27 +19,8 @@ class MigrationStatutAutres extends AbstractMigration
...
@@ -19,27 +19,8 @@ class MigrationStatutAutres extends AbstractMigration
public
function
utile
():
bool
public
function
utile
():
bool
{
{
$bdd
=
$this
->
manager
->
getBdd
();
$sqlStatutAutres
=
"
SELECT *
FROM statut_intervenant si
WHERE si.code = 'AUTRES'
"
;
$statutAutres
=
current
(
$bdd
->
select
(
$sqlStatutAutres
));
//Si j'ai DOSSIER_ADRESSE alors je suis en V15
if
(
isset
(
$statutAutres
[
'DOSSIER_ADRESSE'
]))
{
//Alors je teste pour voir si pour le statut AUTRES aucun bloc de données perso est activé sinon je les désactive
return
(
$statutAutres
[
'DOSSIER_ADRESSE'
]
||
$statutAutres
[
'DOSSIER_CONTACT'
]
||
$statutAutres
[
'DOSSIER_IBAN'
]
||
$statutAutres
[
'DOSSIER_IDENTITE_COMP'
]
||
$statutAutres
[
'DOSSIER_INSEE'
]
);
}
return
false
;
return
$this
->
manager
->
hasOld
(
'table'
,
'DOSSIER'
)
;
}
}
...
...
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