Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gredu_labs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Σταύρος Παπαδάκης
gredu_labs
Commits
5b6cc206
Commit
5b6cc206
authored
Apr 01, 2016
by
Vassilis Kanellopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eduadmin_id is optional
parent
d408698d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
data/db/schema.mysql.sql
data/db/schema.mysql.sql
+1
-1
module/schools/data/schema.mysql.sql
module/schools/data/schema.mysql.sql
+1
-1
module/schools/src/InputFilter/School.php
module/schools/src/InputFilter/School.php
+3
-3
No files found.
data/db/schema.mysql.sql
View file @
5b6cc206
...
...
@@ -364,7 +364,7 @@ CREATE TABLE `school` (
`schooltype_id`
int
(
11
)
unsigned
NOT
NULL
,
`prefecture_id`
int
(
11
)
unsigned
NOT
NULL
,
`educationlevel_id`
int
(
11
)
unsigned
NOT
NULL
,
`eduadmin_id`
int
(
11
)
unsigned
NO
T
NULL
,
`eduadmin_id`
int
(
11
)
unsigned
DEFAUL
T
NULL
,
`created`
int
(
11
)
unsigned
NOT
NULL
,
`creator`
varchar
(
255
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
,
`registry_no`
varchar
(
191
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
,
...
...
module/schools/data/schema.mysql.sql
View file @
5b6cc206
...
...
@@ -300,7 +300,7 @@ CREATE TABLE `school` (
`schooltype_id`
int
(
11
)
unsigned
NOT
NULL
,
`prefecture_id`
int
(
11
)
unsigned
NOT
NULL
,
`educationlevel_id`
int
(
11
)
unsigned
NOT
NULL
,
`eduadmin_id`
int
(
11
)
unsigned
NO
T
NULL
,
`eduadmin_id`
int
(
11
)
unsigned
DEFAUL
T
NULL
,
`created`
int
(
11
)
unsigned
NOT
NULL
,
`creator`
varchar
(
255
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
,
`registry_no`
varchar
(
191
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
,
...
...
module/schools/src/InputFilter/School.php
View file @
5b6cc206
...
...
@@ -91,7 +91,7 @@ class School
]));
$municipality
=
new
Input
(
'municipality'
);
$municipality
->
setRequired
(
tru
e
)
$municipality
->
setRequired
(
fals
e
)
->
getFilterChain
()
->
attach
(
new
Filter\StripTags
())
->
attach
(
new
Filter\StringTrim
());
...
...
@@ -112,10 +112,10 @@ class School
->
attach
(
new
Filter\ToInt
());
$eduadminId
=
new
Input
(
'eduadmin_id'
);
$eduadminId
->
setRequired
(
tru
e
)
$eduadminId
->
setRequired
(
fals
e
)
->
getFilterChain
()
->
attach
(
new
Filter\ToInt
());
$creator
=
new
Input
(
'creator'
);
$creator
->
setRequired
(
true
)
->
getValidatorChain
()
...
...
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