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
8f6b1be6
Commit
8f6b1be6
authored
Mar 13, 2019
by
Julien Jorry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compte error if > 50000 + fix infos + fix ckeditor
parent
b54d24e1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
50 additions
and
6 deletions
+50
-6
HasCompteEntity.php
src/Entity/EntityTrait/HasCompteEntity.php
+1
-1
Version20190313131910.php
src/Migrations/Version20190313131910.php
+41
-0
useradmin.html.twig
templates/block/useradmin.html.twig
+2
-2
userinfos.html.twig
templates/block/userinfos.html.twig
+2
-1
userpassword.html.twig
templates/block/userpassword.html.twig
+2
-1
login.html.twig
templates/common/login.html.twig
+2
-1
No files found.
src/Entity/EntityTrait/HasCompteEntity.php
View file @
8f6b1be6
...
...
@@ -11,7 +11,7 @@ trait HasCompteEntity
/**
* @var int
*
* @ORM\Column(name="compte", type="decimal", precision=
7
, scale=2)
* @ORM\Column(name="compte", type="decimal", precision=
12
, scale=2)
*/
private
$compte
=
0
;
...
...
src/Migrations/Version20190313131910.php
0 → 100644
View file @
8f6b1be6
<?php
declare
(
strict_types
=
1
);
namespace
DoctrineMigrations
;
use
Doctrine\DBAL\Schema\Schema
;
use
Doctrine\Migrations\AbstractMigration
;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final
class
Version20190313131910
extends
AbstractMigration
{
public
function
getDescription
()
:
string
{
return
''
;
}
public
function
up
(
Schema
$schema
)
:
void
{
// this up() migration is auto-generated, please modify it to your needs
$this
->
abortIf
(
$this
->
connection
->
getDatabasePlatform
()
->
getName
()
!==
'mysql'
,
'Migration can only be executed safely on \'mysql\'.'
);
$this
->
addSql
(
'ALTER TABLE siege CHANGE compte compte NUMERIC(12, 2) NOT NULL'
);
$this
->
addSql
(
'ALTER TABLE comptoir CHANGE compte compte NUMERIC(12, 2) NOT NULL'
);
$this
->
addSql
(
'ALTER TABLE prestataire CHANGE compte compte NUMERIC(12, 2) NOT NULL'
);
$this
->
addSql
(
'ALTER TABLE groupe CHANGE compte compte NUMERIC(12, 2) NOT NULL'
);
}
public
function
down
(
Schema
$schema
)
:
void
{
// this down() migration is auto-generated, please modify it to your needs
$this
->
abortIf
(
$this
->
connection
->
getDatabasePlatform
()
->
getName
()
!==
'mysql'
,
'Migration can only be executed safely on \'mysql\'.'
);
$this
->
addSql
(
'ALTER TABLE comptoir CHANGE compte compte NUMERIC(7, 2) NOT NULL'
);
$this
->
addSql
(
'ALTER TABLE groupe CHANGE compte compte NUMERIC(7, 2) NOT NULL'
);
$this
->
addSql
(
'ALTER TABLE prestataire CHANGE compte compte NUMERIC(7, 2) NOT NULL'
);
$this
->
addSql
(
'ALTER TABLE siege CHANGE compte compte NUMERIC(7, 2) NOT NULL'
);
}
}
templates/block/useradmin.html.twig
View file @
8f6b1be6
...
...
@@ -7,8 +7,8 @@
{{
'RETOUR SUPER ADMIN'
|
trans
}}
</a>
</div>
{%
else
%}
<div
class=
'mb-2 group'
>
{%
else
if
is_granted
(
'ROLE_SUPER_ADMIN'
)
%}
<div
class=
'mb-2 group
text-center
'
>
<a
class=
'btn btn-xs m-1 btn-primary'
href=
'
{{
path
(
'index'
,
[],
true
)
}}
?_switch_user=user_prestataire'
>
{{
'PRESTATAIRE'
|
trans
}}
</a>
...
...
templates/block/userinfos.html.twig
View file @
8f6b1be6
...
...
@@ -11,6 +11,6 @@
{{
form_row
(
form.email
)
}}
{{
form_row
(
form.firstname
)
}}
{{
form_row
(
form.lastname
)
}}
<input
type=
"submit"
id=
"_submit
"
name=
"_submit
"
value=
"
{{
'Valider'
|
trans
}}
"
/>
<input
type=
"submit"
id=
"_submit
userinfos"
name=
"_submituserinfos
"
value=
"
{{
'Valider'
|
trans
}}
"
/>
{{
form_end
(
form
)
}}
{%
endblock
blockcontent
%}
\ No newline at end of file
templates/block/userpassword.html.twig
View file @
8f6b1be6
...
...
@@ -10,6 +10,6 @@
{{
form_start
(
form
)
}}
{{
form_row
(
form.current_password
)
}}
{{
form_row
(
form.plainPassword
)
}}
<input
type=
"submit"
id=
"_submit
"
name=
"_submit
"
value=
"
{{
'Valider'
|
trans
}}
"
/>
<input
type=
"submit"
id=
"_submit
userpassword"
name=
"_submituserpassword
"
value=
"
{{
'Valider'
|
trans
}}
"
/>
{{
form_end
(
form
)
}}
{%
endblock
blockcontent
%}
\ No newline at end of file
templates/common/login.html.twig
View file @
8f6b1be6
...
...
@@ -32,7 +32,7 @@
</div>
<div
class=
'row'
>
<div
class=
'col-12 mx-auto text-center'
>
<input
type=
"submit"
id=
"_submit
"
name=
"_submit
"
value=
"
{{
'security.login.submit'
|
trans
}}
"
/>
<input
type=
"submit"
id=
"_submit
login"
name=
"_submitlogin
"
value=
"
{{
'security.login.submit'
|
trans
}}
"
/>
</div>
</div>
</form>
\ No newline at end of file
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