-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
implement sort on field like documentation describe it #33014
Conversation
It's a lack in v18 but I'm afraid of breaking some modules : |
When you look at v21 version we see that in doc comment:
May be fixes were done before in v19 or v20, may be in several steps Nevermind, by reading the the doc in v21, i understand that:
Note: on old released version when doc does not match code, the code should rules prior to doc to reduce risk of regression. So i think this problem should remains as "won't be fixed in v18" as the fix seems to have needed a large amount of changes on higher version. Or at least we can just update the doc instead to say that sort is not yet supported in v18, and is in higher version |
Hmmmm please consider the fix old code one line
new code replace that line it with 4 lines ...
we are in |
The "$InfoFieldList[5]" can be the USF filter and not the SortByFiled as wanted because you explode by ":" |
hum, i'm sorry, that's not clear for me, USF is for dolibarr AFTER 18 no ? |
Yes, you're right the USF was only on documentation of module builder (in "myobject.class.php") and not used in v18 of Dolibarr. |
@eldy ok but i think we don't have to put 'Discussion' label then ... but "wont't fix" or something like that (may @lvessiller-opendsi and me use labels ?) and close that PR no ? |
@eldy |
Graph has been added into this page: |
@eldy @lvessiller-opendsi @rycks and for the "serious need" ? ;-) Who decides apart from you? ? ![]() |
@eldy @rycks @lvessiller-opendsi |
module builder make that documentation for class fields:
.../...
* 'type' field format:
* 'integer', 'integer:ObjectClass:PathToClass[:AddCreateButtonOrNot[:Filter[:Sortfield]]]',
* 'select' (list of values are in 'options'),
* 'sellist:TableName:LabelFieldName[:KeyFieldName[:KeyFieldParent[:Filter[:Sortfield]]]]',
.../...
so there is a sortfield for sellist, that PR implements that sort configuration