Skip to content

Conversation

@evarisk-charles
Copy link
Contributor

No description provided.


if (strpos($parameters['context'], 'contractcard') !== false) {
if ($action == 'builddoc' && strstr(GETPOST('model'), 'completioncertificatedocument_odt')) {
if ($action == 'builddoc' && strstr(GETPOST('model'), 'completioncertificatedocument_odt') || $action == 'builddoc' && strstr(GETPOST('model'), 'completioncertificatedocument')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

la tu peux normalement faire un meilleur preg_match

Comment on lines +131 to +135
$object = $moreParam['object'];

$contract = new Contrat($this->db);
$contract->fetch($object->fk_contrat);
$contract->fetch_optionals();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Problème de logique l'object viens de contrat donc ici t'as un contrat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 Estimated resolution time - 240 mins - 4h Enhancement New feature or request ODT ODT Feature

Development

Successfully merging this pull request may close these issues.

Créer le certificat de réalisation en PDF

2 participants