-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: main
Are you sure you want to change the base?
New option to show margin #99
Conversation
There was a problem hiding this 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')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_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)) { ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<?php if (!empty($conf->global->DOC2PROJECT_SHOWW_MARGIN)) { ?> | |
<?php if (empty($conf->global->DOC2PROJECT_DO_NOT_SHOWW_MARGIN)) { ?> |
No description provided.