Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
cooperatic-mlc
kohinos
Commits
c569ff7a
Commit
c569ff7a
authored
Aug 06, 2020
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix anomalie 4 : champ Reference obligatoire
parent
cd58f002
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
UserAdmin.php
src/Admin/UserAdmin.php
+1
-1
FluxFormType.php
src/Form/Type/FluxFormType.php
+1
-1
No files found.
src/Admin/UserAdmin.php
View file @
c569ff7a
...
...
@@ -56,7 +56,7 @@ class UserAdmin extends SonataUserAdmin
{
parent
::
configureListFields
(
$listMapper
);
unset
(
$this
->
listModes
[
'mosaic'
]);
if
(
$this
->
isGranted
(
'ROLE_ALLOWED_TO_SWITCH'
))
{
$listMapper
->
addIdentifier
(
'impersonating'
,
'string'
,
[
'template'
=>
'@SonataUser/Admin/Field/impersonating.html.twig'
])
...
...
src/Form/Type/FluxFormType.php
View file @
c569ff7a
...
...
@@ -96,7 +96,7 @@ class FluxFormType extends AbstractType
$builder
->
add
(
'reference'
,
TextType
::
class
,
array
(
'label'
=>
'Reference :'
,
'required'
=>
fals
e
'required'
=>
tru
e
))
->
add
(
'save'
,
SubmitType
::
class
,
[
'label'
=>
"Valider"
])
->
addEventListener
(
FormEvents
::
POST_SUBMIT
,
function
(
FormEvent
$event
)
use
(
$builder
)
{
...
...
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