Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
38a0b9eb
Commit
38a0b9eb
authored
Aug 01, 2022
by
Julien Jorry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug on saveHelloAsso submit if not exist
parent
a3eb9c7b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
AdhesionController.php
src/Controller/AdhesionController.php
+2
-2
UserAdherentController.php
src/Controller/UserAdherentController.php
+3
-3
UserPrestataireController.php
src/Controller/UserPrestataireController.php
+2
-2
No files found.
src/Controller/AdhesionController.php
View file @
38a0b9eb
...
@@ -50,7 +50,7 @@ class AdhesionController extends AbstractController
...
@@ -50,7 +50,7 @@ class AdhesionController extends AbstractController
if
(
$form
->
isSubmitted
())
{
if
(
$form
->
isSubmitted
())
{
if
(
$form
->
isValid
())
{
if
(
$form
->
isValid
())
{
// CB PAIEMENT USE PAYZEN
// CB PAIEMENT USE PAYZEN
if
(
$form
->
get
(
'save'
)
->
isClicked
())
{
if
(
$form
->
has
(
'save'
)
&&
$form
->
get
(
'save'
)
->
isClicked
())
{
$adherentNew
=
$form
->
getData
();
$adherentNew
=
$form
->
getData
();
// Serialize form data in json to store with payment object and persist when payment is valid
// Serialize form data in json to store with payment object and persist when payment is valid
...
@@ -76,7 +76,7 @@ class AdhesionController extends AbstractController
...
@@ -76,7 +76,7 @@ class AdhesionController extends AbstractController
'extra_data'
=>
$jsondata
,
'extra_data'
=>
$jsondata
,
]);
]);
// HELLOASSO PAIEMENT
// HELLOASSO PAIEMENT
}
elseif
(
$form
->
get
(
'saveHelloAsso'
)
->
isClicked
())
{
}
elseif
(
$form
->
has
(
'saveHelloAsso'
)
&&
$form
->
get
(
'saveHelloAsso'
)
->
isClicked
())
{
$adherentNew
=
$form
->
getData
();
$adherentNew
=
$form
->
getData
();
$usergroup
=
$this
->
em
->
getRepository
(
Usergroup
::
class
)
->
findOneByName
(
'Adherent'
);
$usergroup
=
$this
->
em
->
getRepository
(
Usergroup
::
class
)
->
findOneByName
(
'Adherent'
);
$adherentNew
->
getUser
()
->
addPossiblegroup
(
$usergroup
);
$adherentNew
->
getUser
()
->
addPossiblegroup
(
$usergroup
);
...
...
src/Controller/UserAdherentController.php
View file @
38a0b9eb
...
@@ -100,14 +100,14 @@ class UserAdherentController extends FluxController
...
@@ -100,14 +100,14 @@ class UserAdherentController extends FluxController
$form
->
handleRequest
(
$request
);
$form
->
handleRequest
(
$request
);
if
(
$form
->
isSubmitted
()
&&
$form
->
isValid
())
{
if
(
$form
->
isSubmitted
()
&&
$form
->
isValid
())
{
if
(
$form
->
get
(
'payOther'
)
->
isClicked
())
{
if
(
$form
->
has
(
'payOther'
)
&&
$form
->
get
(
'payOther'
)
->
isClicked
())
{
return
$this
->
redirectToRoute
(
'achatMonnaieAConfirmerAdherent'
);
return
$this
->
redirectToRoute
(
'achatMonnaieAConfirmerAdherent'
);
}
elseif
(
$form
->
get
(
'save'
)
->
isClicked
())
{
}
elseif
(
$form
->
has
(
'save'
)
&&
$form
->
get
(
'save'
)
->
isClicked
())
{
return
$this
->
preparePaymentAction
(
return
$this
->
preparePaymentAction
(
$form
,
$form
,
Payment
::
TYPE_ACHAT_MONNAIE_ADHERENT
Payment
::
TYPE_ACHAT_MONNAIE_ADHERENT
);
);
}
elseif
(
$form
->
get
(
'saveHelloAsso'
)
->
isClicked
())
{
}
elseif
(
$form
->
has
(
'saveHelloAsso'
)
&&
$form
->
get
(
'saveHelloAsso'
)
->
isClicked
())
{
$url
=
$this
->
em
->
getRepository
(
GlobalParameter
::
class
)
->
val
(
GlobalParameter
::
HELLOASSO_URL_EMLC_ADHERENT
);
$url
=
$this
->
em
->
getRepository
(
GlobalParameter
::
class
)
->
val
(
GlobalParameter
::
HELLOASSO_URL_EMLC_ADHERENT
);
return
$this
->
redirect
(
$url
);
return
$this
->
redirect
(
$url
);
...
...
src/Controller/UserPrestataireController.php
View file @
38a0b9eb
...
@@ -252,9 +252,9 @@ class UserPrestataireController extends FluxController
...
@@ -252,9 +252,9 @@ class UserPrestataireController extends FluxController
if
(
$achat
->
getDon
()
&&
0
==
$achat
->
getDon
()
->
getMontant
())
{
if
(
$achat
->
getDon
()
&&
0
==
$achat
->
getDon
()
->
getMontant
())
{
$achat
->
setDon
(
null
);
$achat
->
setDon
(
null
);
}
}
if
(
$form
->
get
(
'payOther'
)
->
isClicked
())
{
if
(
$form
->
has
(
'payOther'
)
&&
$form
->
get
(
'payOther'
)
->
isClicked
())
{
return
$this
->
redirectToRoute
(
'achatMonnaieAConfirmerPrestataire'
);
return
$this
->
redirectToRoute
(
'achatMonnaieAConfirmerPrestataire'
);
}
elseif
(
$form
->
get
(
'saveHelloAsso'
)
->
isClicked
())
{
}
elseif
(
$form
->
has
(
'saveHelloAsso'
)
&&
$form
->
get
(
'saveHelloAsso'
)
->
isClicked
())
{
$url
=
$this
->
em
->
getRepository
(
GlobalParameter
::
class
)
->
val
(
GlobalParameter
::
HELLOASSO_URL_EMLC_PRESTATAIRE
);
$url
=
$this
->
em
->
getRepository
(
GlobalParameter
::
class
)
->
val
(
GlobalParameter
::
HELLOASSO_URL_EMLC_PRESTATAIRE
);
return
$this
->
redirect
(
$url
);
return
$this
->
redirect
(
$url
);
...
...
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