Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
de16a663
Commit
de16a663
authored
6 years ago
by
Florian Azizian
Browse files
Options
Downloads
Patches
Plain Diff
FEAT Add label in modal send to MaarchParapheur
parent
6cdbe9ca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/maarch_entreprise/actions/sendToExternalSignatureBook.php
+9
-3
9 additions, 3 deletions
...maarch_entreprise/actions/sendToExternalSignatureBook.php
modules/visa/class/MaarchParapheurController.php
+2
-1
2 additions, 1 deletion
modules/visa/class/MaarchParapheurController.php
with
11 additions
and
4 deletions
apps/maarch_entreprise/actions/sendToExternalSignatureBook.php
+
9
−
3
View file @
de16a663
...
@@ -109,9 +109,9 @@ function check_form($form_id, $values)
...
@@ -109,9 +109,9 @@ function check_form($form_id, $values)
}
}
}
}
if
(
$config
[
'id'
]
==
'maarchParapheur'
)
{
if
(
$config
[
'id'
]
==
'maarchParapheur'
)
{
$objectSent
=
get_value_fields
(
$values
,
'objectSent'
);
$objectSent
Sign
=
get_value_fields
(
$values
,
'objectSent
Sign
'
);
$hasAttachmentError
=
hasAttachmentError
();
$hasAttachmentError
=
hasAttachmentError
();
if
(
$objectSent
==
'attachment'
&&
$hasAttachmentError
[
'error'
])
{
if
(
$objectSent
Sign
==
'attachment'
&&
$hasAttachmentError
[
'error'
])
{
if
(
!
empty
(
$_SESSION
[
'stockCheckbox'
]))
{
if
(
!
empty
(
$_SESSION
[
'stockCheckbox'
]))
{
$_SESSION
[
'action_error'
]
=
_MAIL_HAS_NO_RESPONSE_PROJECT
.
' : '
.
implode
(
","
,
$hasAttachmentError
[
'resList'
]);
$_SESSION
[
'action_error'
]
=
_MAIL_HAS_NO_RESPONSE_PROJECT
.
' : '
.
implode
(
","
,
$hasAttachmentError
[
'resList'
]);
}
else
{
}
else
{
...
@@ -166,7 +166,13 @@ function manage_form($arr_id, $history, $id_action, $label_action, $status, $col
...
@@ -166,7 +166,13 @@ function manage_form($arr_id, $history, $id_action, $label_action, $status, $col
include_once
'modules/visa/class/MaarchParapheurController.php'
;
include_once
'modules/visa/class/MaarchParapheurController.php'
;
$processingUser
=
get_value_fields
(
$values_form
,
'processingUser'
);
$processingUser
=
get_value_fields
(
$values_form
,
'processingUser'
);
$objectSent
=
get_value_fields
(
$values_form
,
'objectSent'
);
$objectSentNote
=
get_value_fields
(
$values_form
,
'objectSentNote'
);
$objectSentSign
=
get_value_fields
(
$values_form
,
'objectSentSign'
);
if
(
!
empty
(
$objectSentNote
))
{
$objectSent
=
$objectSentNote
;
}
else
{
$objectSent
=
$objectSentSign
;
}
$attachmentToFreeze
=
MaarchParapheurController
::
sendDatas
([
$attachmentToFreeze
=
MaarchParapheurController
::
sendDatas
([
'config'
=>
$config
,
'config'
=>
$config
,
'resIdMaster'
=>
$res_id
,
'resIdMaster'
=>
$res_id
,
...
...
This diff is collapsed.
Click to expand it.
modules/visa/class/MaarchParapheurController.php
+
2
−
1
View file @
de16a663
...
@@ -30,7 +30,8 @@ class MaarchParapheurController
...
@@ -30,7 +30,8 @@ class MaarchParapheurController
}
}
}
}
$html
.
=
'</select><br /><br /><br /><br />'
;
$html
.
=
'</select><br /><br /><br /><br />'
;
$html
.
=
'<input type="radio" name="objectSent" id="objectSent" value="mail" checked="checked" />'
.
_MAIL_NOTE
.
'<br/><input type="radio" name="objectSent" id="objectSent" value="attachment" />'
.
_ATTACHMENT_SIGNATURE
.
'<br /><br />'
;
$html
.
=
'<input type="radio" name="objectSent" id="objectSentNote" value="mail" checked="checked" /><label for="objectSentNote" style="float: none;display: unset;">'
.
_MAIL_NOTE
.
'</label><br/>'
;
$html
.
=
'<input type="radio" name="objectSent" id="objectSentSign" value="attachment" /><label for="objectSentSign" style="float: none;display: unset;">'
.
_ATTACHMENT_SIGNATURE
.
'</label><br /><br />'
;
return
$html
;
return
$html
;
}
}
...
...
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