Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Libriciel
web-DPO
Commits
8f2f40b4
Commit
8f2f40b4
authored
Jun 22, 2020
by
Théo GUILLON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction : mauvais modele utilisé pour la transaction
parent
d6794679
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/Controller/ModeleExtraitRegistresController.php
app/Controller/ModeleExtraitRegistresController.php
+5
-5
No files found.
app/Controller/ModeleExtraitRegistresController.php
View file @
8f2f40b4
...
...
@@ -45,20 +45,20 @@ class ModeleExtraitRegistresController extends AppController {
throw
new
ForbiddenException
(
__d
(
'default'
,
'default.flasherrorPasDroitPage'
));
}
$this
->
Modele
->
begin
();
$this
->
Modele
ExtraitRegistre
->
begin
();
$saveFile
=
$this
->
ModeleExtraitRegistre
->
saveFile
(
$this
->
request
->
data
,
$this
->
Session
->
read
(
'Organisation.id'
));
if
(
$saveFile
==
0
)
{
$this
->
Modele
->
commit
();
$this
->
Modele
ExtraitRegistre
->
commit
();
$this
->
Session
->
setFlash
(
__d
(
'modele'
,
'modele.flashsuccessModeleEnregistrer'
),
'flashsuccess'
);
}
elseif
(
$saveFile
==
1
)
{
$this
->
Modele
->
rollback
();
$this
->
Modele
ExtraitRegistre
->
rollback
();
$this
->
Session
->
setFlash
(
__d
(
'modele'
,
'modele.flasherrorFicherTropLourd'
),
'flasherror'
);
}
elseif
(
$saveFile
==
2
)
{
$this
->
Modele
->
rollback
();
$this
->
Modele
ExtraitRegistre
->
rollback
();
$this
->
Session
->
setFlash
(
__d
(
'modele'
,
'modele.flasherrorExtensionNonValide'
),
'flasherror'
);
}
elseif
(
$saveFile
==
3
)
{
$this
->
Modele
->
rollback
();
$this
->
Modele
ExtraitRegistre
->
rollback
();
$this
->
Session
->
setFlash
(
__d
(
'modele'
,
'modele.flashwarningAucunFichier'
),
'flashwarning'
);
}
...
...
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