-
Notifications
You must be signed in to change notification settings - Fork 6
NEW : show product variants by default in product list (backport) #758
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
Changes from 4 commits
347c330
3b28d38
2c2bea6
73b6a03
1fc2ffe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,6 +55,12 @@ | |
| $error++; | ||
| } | ||
|
|
||
| // BACKPORT ATM #757 - natif dès Dolibarr 24.0, à retirer après upgrade vers 24+ | ||
| if (!dolibarr_set_const($db, 'PRODUIT_ATTRIBUTES_SHOWCHILD_IN_LIST', GETPOST('PRODUIT_ATTRIBUTES_SHOWCHILD_IN_LIST'), 'chaine', 0, '', $conf->entity)) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Manque du second paramètre de getpost, mais on passe car backport
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ajouté : |
||
| setEventMessages($langs->trans('CoreErrorMessage'), null, 'errors'); | ||
| $error++; | ||
| } | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Backport Start et End ou équivalent
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fait : bloc encadré par |
||
| if (!dolibarr_set_const($db, 'PRODUIT_ATTRIBUTES_SEPARATOR', GETPOST('PRODUIT_ATTRIBUTES_SEPARATOR'), 'chaine', 0, '', $conf->entity)) { | ||
| setEventMessages($langs->trans('CoreErrorMessage'), null, 'errors'); | ||
| $error++; | ||
|
|
@@ -94,6 +100,11 @@ | |
| print '<tr class="oddeven"><td>'.$langs->trans('HideProductCombinations').'</td><td>'; | ||
| print $form->selectyesno("PRODUIT_ATTRIBUTES_HIDECHILD", getDolGlobalString('PRODUIT_ATTRIBUTES_HIDECHILD'), 1).'</td></tr>'; | ||
|
|
||
| // >>> BACKPORT ATM #757 - natif dès Dolibarr 24.0, à retirer après upgrade vers 24+ | ||
| print '<tr class="oddeven"><td>'.$form->textwithpicto($langs->trans('ShowProductCombinationsInList'), $langs->trans('ShowProductCombinationsInListHelp')).'</td><td>'; | ||
| print $form->selectyesno("PRODUIT_ATTRIBUTES_SHOWCHILD_IN_LIST", getDolGlobalString('PRODUIT_ATTRIBUTES_SHOWCHILD_IN_LIST'), 1).'</td></tr>'; | ||
|
atm-vincent-p marked this conversation as resolved.
|
||
| // <<< BACKPORT ATM #757 | ||
|
|
||
| print '<tr class="oddeven"><td>'.$langs->trans('CombinationsSeparator').'</td>'; | ||
|
|
||
| $separator = getDolGlobalString('PRODUIT_ATTRIBUTES_SEPARATOR', '_'); | ||
|
|
||
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.
Ajouter la date ?
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.
Le ChangeLog Dolibarr ne date pas les lignes individuelles (regroupement par version). J'ai plutôt tagué l'entrée comme backport, conforme aux autres
(backport ...)du fichier :... (backport ATM #757, native in Dolibarr 24.0). Corrigé.