Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clivi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NF17 - CAMP - P14
clivi
Commits
37d5f5ba
Commit
37d5f5ba
authored
10 years ago
by
goujonpa
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.utc.fr:nf17-camp-p14/clivi
parents
7cf57040
a9461143
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
class/animal.php
+1
-0
1 addition, 0 deletions
class/animal.php
class/datefield.php
+1
-3
1 addition, 3 deletions
class/datefield.php
class/field.php
+3
-1
3 additions, 1 deletion
class/field.php
with
5 additions
and
4 deletions
class/animal.php
+
1
−
0
View file @
37d5f5ba
...
...
@@ -46,6 +46,7 @@ class Animal extends Objet
"i"
=>
3
),
"race"
=>
array
(
"label"
=>
"Espece : Race"
,
"t"
=>
"ForeignField"
,
"i"
=>
4
));
...
...
This diff is collapsed.
Click to expand it.
class/datefield.php
+
1
−
3
View file @
37d5f5ba
...
...
@@ -15,14 +15,12 @@ class DateField extends Field
{
if
(
isset
(
$_POST
[
$this
->
name
]))
{
$this
->
value
=
$_POST
[
$this
->
name
];
if
(
$this
->
value
==
" "
)
{
if
(
count
(
$this
->
value
)
<
4
)
{
$this
->
value
=
null
;
}
}
else
{
$this
->
value
=
null
;
}
print
(
$this
->
name
);
print
(
$this
->
value
);
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
class/field.php
+
3
−
1
View file @
37d5f5ba
...
...
@@ -38,7 +38,9 @@ class Field {
return
true
;
}
$this
->
value
=
$_POST
[
$this
->
name
];
if
(
isset
(
$_POST
[
$this
->
name
]))
{
$this
->
value
=
$_POST
[
$this
->
name
];
}
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment