Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchParapheur
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
Maarch
MaarchParapheur
Commits
10f7b59d
Verified
Commit
10f7b59d
authored
3 years ago
by
Damien
Browse files
Options
Downloads
Patches
Plain Diff
FEAT #16982 TIME 1:25 Convert thumbnails after yousign
parent
b6026de3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/history/models/HistoryModel.php
+1
-1
1 addition, 1 deletion
src/app/history/models/HistoryModel.php
src/app/workflow/controllers/YousignController.php
+8
-0
8 additions, 0 deletions
src/app/workflow/controllers/YousignController.php
with
9 additions
and
1 deletion
src/app/history/models/HistoryModel.php
+
1
−
1
View file @
10f7b59d
...
@@ -40,7 +40,7 @@ class HistoryModel
...
@@ -40,7 +40,7 @@ class HistoryModel
public
static
function
create
(
array
$args
)
public
static
function
create
(
array
$args
)
{
{
ValidatorModel
::
notEmpty
(
$args
,
[
'code'
,
'object_type'
,
'object_id'
,
'type'
,
'user_id'
,
'user'
,
'message'
,
'data'
,
'ip'
]);
ValidatorModel
::
notEmpty
(
$args
,
[
'code'
,
'object_type'
,
'object_id'
,
'type'
,
'user'
,
'message'
,
'data'
,
'ip'
]);
ValidatorModel
::
stringType
(
$args
,
[
'code'
,
'object_type'
,
'type'
,
'user'
,
'message'
,
'data'
,
'ip'
]);
ValidatorModel
::
stringType
(
$args
,
[
'code'
,
'object_type'
,
'type'
,
'user'
,
'message'
,
'data'
,
'ip'
]);
ValidatorModel
::
intVal
(
$args
,
[
'user_id'
]);
ValidatorModel
::
intVal
(
$args
,
[
'user_id'
]);
...
...
This diff is collapsed.
Click to expand it.
src/app/workflow/controllers/YousignController.php
+
8
−
0
View file @
10f7b59d
...
@@ -23,6 +23,7 @@ use ExternalSignatoryBook\models\ExternalSignatoryBookModel;
...
@@ -23,6 +23,7 @@ use ExternalSignatoryBook\models\ExternalSignatoryBookModel;
use
Slim\Http\Request
;
use
Slim\Http\Request
;
use
Slim\Http\Response
;
use
Slim\Http\Response
;
use
SrcCore\controllers\UrlController
;
use
SrcCore\controllers\UrlController
;
use
SrcCore\models\CoreConfigModel
;
use
SrcCore\models\CurlModel
;
use
SrcCore\models\CurlModel
;
use
SrcCore\models\ValidatorModel
;
use
SrcCore\models\ValidatorModel
;
use
Workflow\models\WorkflowExternalInformationModel
;
use
Workflow\models\WorkflowExternalInformationModel
;
...
@@ -247,6 +248,13 @@ class YousignController
...
@@ -247,6 +248,13 @@ class YousignController
'filename'
=>
$storeInfos
[
'filename'
],
'filename'
=>
$storeInfos
[
'filename'
],
'fingerprint'
=>
$storeInfos
[
'fingerprint'
]
'fingerprint'
=>
$storeInfos
[
'fingerprint'
]
]);
]);
AdrModel
::
deleteDocumentAdr
([
'where'
=>
[
'main_document_id = ?'
,
'type like ?'
],
'data'
=>
[
$args
[
'id'
],
'TNL%'
]
]);
$configPath
=
CoreConfigModel
::
getConfigPath
();
exec
(
"php src/app/convert/scripts/ThumbnailScript.php '
{
$configPath
}
'
{
$args
[
'id'
]
}
'document' 0 > /dev/null &"
);
}
}
$GLOBALS
[
'webhook'
]
=
'yousign webhook'
;
$GLOBALS
[
'webhook'
]
=
'yousign webhook'
;
...
...
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