Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory-plugins
Commits
05030b47
Verified
Commit
05030b47
authored
6 years ago
by
Côme Chilliet
2
Browse files
Options
Download
Patches
Plain Diff
fix(supann-ext) Forbid start date being after end date
issue #5843
parent
f00a0803
dev
6245-adapt-the-ci-to-the-reorganisation-of-the-dev-tools-and-fixing-the-trigger-downstream-pipelines
6250-supann-configuration-backend-requires-account-life-cycle-section
6280-plugins-update-plugins-to-take-into-consideration-the-new-directory-of-core-structure
6310-tasks-reminder-error-in-the-schema-duplicate-attribute-id
6311-put-the-version-1-5-in-all-yaml-for-fusiondirectory-1-5
6322-template-issue-when-creating-a-template-with-empty-password-error-message-should-not-be-seen-2
6332-zimbra-allows-update-of-data-for-unknown-domain-name-for-specific-individual-aliases
6337-webservice-issue-with-archiving-post-request-not-responding-but-successfully-archiving-user
6341-supann-extract-resources-states-sub-states-from-backend-configuration-to-their-own-objects
master
fusiondirectory-1.5
fusiondirectory-1.4
fusiondirectory-1.3.1
fusiondirectory-1.3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
supann-ext/admin/supannStructures/class_supannStructureExt.inc
+15
-0
...n-ext/admin/supannStructures/class_supannStructureExt.inc
with
15 additions
and
0 deletions
+15
-0
supann-ext/admin/supannStructures/class_supannStructureExt.inc
+
15
−
0
View file @
05030b47
...
@@ -124,6 +124,21 @@ class supannStructureExt extends simplePlugin
...
@@ -124,6 +124,21 @@ class supannStructureExt extends simplePlugin
$this
->
attributesAccess
[
'fdSupannRelationEntite'
]
->
attribute
->
attributes
[
2
]
->
setChoices
(
$code_entites
,
$label_entites
);
$this
->
attributesAccess
[
'fdSupannRelationEntite'
]
->
attribute
->
attributes
[
2
]
->
setChoices
(
$code_entites
,
$label_entites
);
}
}
function
check
()
{
$errors
=
parent
::
check
();
if
(
(
$this
->
attributesAccess
[
'fdSupannStartDate'
]
->
getValue
()
!=
''
)
&&
(
$this
->
attributesAccess
[
'fdSupannEndDate'
]
->
getValue
()
!=
''
)
&&
(
$this
->
attributesAccess
[
'fdSupannStartDate'
]
->
getDateValue
()
>
$this
->
attributesAccess
[
'fdSupannEndDate'
]
->
getDateValue
())
)
{
$errors
[]
=
_
(
'Start date must be smaller than end date'
);
}
return
$errors
;
}
protected
function
prepare_save
()
protected
function
prepare_save
()
{
{
$this
->
attributesAccess
[
'fdSupannRelationEntite'
]
->
supannPrepareSave
();
$this
->
attributesAccess
[
'fdSupannRelationEntite'
]
->
supannPrepareSave
();
...
...
This diff is collapsed.
Click to expand it.
Côme Chilliet
@cchilliet
mentioned in commit
db429f69
·
6 years ago
mentioned in commit
db429f69
mentioned in commit db429f69d9c35c123c1cb3f62251850c9ab9d798
Toggle commit list
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets