Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New option to show margin #99

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

SylvainLegrand
Copy link
Contributor

No description provided.

Copy link
Member

@john-botella john-botella left a comment

Choose a reason for hiding this comment

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

Hi,

This new option change the default behavior.
We usually keep default and add conf to change behavior.
It's important to keep default behavior to avoid on update weirds changes for customers.

Ex : use instead DOC2PROJECT_DO_NOT_SHOWW_MARGIN
(and change langs...)

@@ -154,6 +154,9 @@
// Cloner les attributs suppémentaires du document source sur le projet
_print_on_off('DOC2PROJECT_CLONE_EXTRAFIELDS', $langs->trans('Doc2ProjectCloneExtrafields'));

// Afficher la marge sur la page de page du projet
_print_on_off('DOC2PROJECT_SHOWW_MARGIN', $langs->trans('Doc2ProjectShowMargin'));
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
_print_on_off('DOC2PROJECT_SHOWW_MARGIN', $langs->trans('Doc2ProjectShowMargin'));
_print_on_off('DOC2PROJECT_DO_NOT_SHOWW_MARGIN', $langs->trans('Doc2ProjectShowMargin'));

<td><?php echo $langs->trans('Margin'); ?></td>
<td><?php echo price($marge) ?></td>
</tr>
<?php if (!empty($conf->global->DOC2PROJECT_SHOWW_MARGIN)) { ?>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<?php if (!empty($conf->global->DOC2PROJECT_SHOWW_MARGIN)) { ?>
<?php if (empty($conf->global->DOC2PROJECT_DO_NOT_SHOWW_MARGIN)) { ?>

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

Successfully merging this pull request may close these issues.

2 participants