Skip to content

Commit 23c3aa8

Browse files
AaronWDSdependabot[bot]InbarGazit
authored
Devdocs 9745: misc. php fixes (#101)
* Bump twig/twig from 3.3.8 to 3.4.3 in /Quick_ACG Bumps [twig/twig](https://github.com/twigphp/Twig) from 3.3.8 to 3.4.3. - [Release notes](https://github.com/twigphp/Twig/releases) - [Changelog](https://github.com/twigphp/Twig/blob/3.x/CHANGELOG) - [Commits](twigphp/Twig@v3.3.8...v3.4.3) --- updated-dependencies: - dependency-name: twig/twig dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Bump twig/twig from 3.3.8 to 3.4.3 Bumps [twig/twig](https://github.com/twigphp/Twig) from 3.3.8 to 3.4.3. - [Release notes](https://github.com/twigphp/Twig/releases) - [Changelog](https://github.com/twigphp/Twig/blob/3.x/CHANGELOG) - [Commits](twigphp/Twig@v3.3.8...v3.4.3) --- updated-dependencies: - dependency-name: twig/twig dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * README.md updates * explicit routing handler for eg001 for QuickACG * fixes ex 11 and 32 and uncovered bug Admin7 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Inbar Gazit <[email protected]>
1 parent ca4ff29 commit 23c3aa8

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

src/Controllers/Examples/eSignature/EG011EmbeddedSending.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,19 @@ public function createController(): void
3636
$this->checkDsToken();
3737
# 2. Call the worker method
3838
# More data validation would be a good idea here
39-
# Strip anything other than characters listed
39+
# Strip anything other than characters listed
40+
41+
$pdfDoc = $GLOBALS['DS_CONFIG']['doc_pdf'];
42+
$docxDoc = $GLOBALS['DS_CONFIG']['doc_docx'];
43+
4044
$envelopeIdAndRedirectUrl = EmbeddedSendingService::embeddedSending(
4145
$this->args,
4246
$this->clientService,
43-
$this::DEMO_DOCS_PATH
47+
$this::DEMO_DOCS_PATH,
48+
$docxDoc,
49+
$pdfDoc,
50+
51+
4452
);
4553

4654
if ($envelopeIdAndRedirectUrl) {

src/Services/Examples/eSignature/EmbeddedSendingService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ class EmbeddedSendingService
1818
* @return array ['redirect_url']
1919
*/
2020
# ***DS.snippet.0.start
21-
public static function embeddedSending(array $args, $clientService, $demoDocsPath): array
21+
public static function embeddedSending(array $args, $clientService, $demoDocsPath, $docxFile, $pdfFile): array
2222
{
2323
# 1. Create the envelope as a draft using eg002's worker
2424
# Exceptions will be caught by the calling function
2525
$args['envelope_args']['status'] = 'created';
26-
$demoDocsPath = SigningViaEmailService::signingViaEmail($args, $clientService, $demoDocsPath);
26+
$demoDocsPath = SigningViaEmailService::signingViaEmail($args, $clientService, $demoDocsPath, $docxFile, $pdfFile);
2727
$envelope_id = $demoDocsPath['envelope_id'];
2828

2929
# 2. Create sender view

templates/admin/eg007_retrieve_profile_by_user_id.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "base.html" %}
22
{% block content %}
33

4-
{% set formNumber = 0 %
4+
{% set formNumber = 0 %}
55
{% set userIdInputNumber = 0 %}
66

77
<h4>{{ code_example_text['ExampleName'] | raw }}</h4>

templates/esignature/eg032_pause_signature_workflow.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
{% set secondFormNumber = 1 %}
55
{% set nameNumber = 0 %}
66
{% set emailInputNumber = 1 %}
7-
{% set email2InputNumber = 1 %}
8-
{% set name2InputNumber = 0 %}
7+
{% set email2InputNumber = 0 %}
8+
{% set name2InputNumber = 1 %}
99

1010
<h4>{{ code_example_text['ExampleName'] | raw }}</h4>
1111

0 commit comments

Comments
 (0)