-
Notifications
You must be signed in to change notification settings - Fork 19
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
#1749 [Control] add: csslist on control to reduce fk_sheet column size #1786
base: develop
Are you sure you want to change the base?
Conversation
@@ -310,7 +310,7 @@ | |||
print $form->selectarray('search_' . $key, $val['arrayofkeyval'], $search[$key], $val['notnull'], 0, 0, '', 1, 0, 0, '', 'minwidth200', 1); | |||
} | |||
elseif ($key == 'fk_sheet') { | |||
print $sheet->selectSheetList(GETPOST('fromtype') == 'fk_sheet' ? GETPOST('fromid') : ($search['fk_sheet'] ?: 0), 'search_fk_sheet', 's.type = ' . '"' . $object->element . '"'); | |||
print $sheet->selectSheetList(GETPOST('fromtype') == 'fk_sheet' ? GETPOST('fromid') : ($search['fk_sheet'] ?: 0), 'search_fk_sheet', 's.type = ' . '"' . $object->element . '"', '1', 0, 0, [], '', 0, 0, $cssforfield); |
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.
Je suis d'accord dans le principe sauf que la on veut set les paramètres par défaut du champs ducoup il vaut mieux le faire dans la fonction directement
Le but de ce genre de paramètres moreCSS c'est d'ajouter du spécifique
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.
C'est un spécifique justement parcequ'on veut limiter la taille seulement dans la liste mais si on utilise la fonction ailleurs et qu'on la veut plus grande alors on veut pas que ce soit du css par défaut
@@ -208,7 +208,7 @@ | |||
'enabled' => ($visible != 3 && dol_eval($val['enabled'], 1)), | |||
'position'=> $val['position'], | |||
'help' => $val['help'], | |||
'css' => $val['css'] | |||
'css' => (empty($val['csslist']) ? (empty($val['css']) ? '' : $val['css']) : $val['csslist']) |
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.
C'est la ligne du module builder ?
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.
oui c'est la ligne qui est utilisé partout
No description provided.