-
Notifications
You must be signed in to change notification settings - Fork 281
N°6327 - Enum, Date, FinalClass in Complementary Name not labelized #783
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
base: develop
Are you sure you want to change the base?
Changes from 1 commit
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -39,7 +39,7 @@ public static function Init() | |||||
| "category" => "grant_by_profile,core/cmdb", | ||||||
| "key_type" => "autoincrement", | ||||||
| "name_attcode" => "description", | ||||||
| "complementary_name_attcode" => ['finalclass', 'complement'], | ||||||
| "complementary_name_attcode" => ['finalclass', 'target_class'], | ||||||
|
||||||
| "complementary_name_attcode" => ['finalclass', 'target_class'], | |
| "complementary_name_attcode" => ['finalclass'], |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -404,7 +404,8 @@ protected function LoadValuesForAutocomplete($aArgs, $sContains = '', $sOperatio | |||||
| if (count($aAdditionalField) > 0) { | ||||||
| $aArguments = []; | ||||||
| foreach ($aAdditionalField as $sAdditionalField) { | ||||||
| array_push($aArguments, $oObject->Get($sAdditionalField)); | ||||||
| //getAsCSV to have user friendly value in text format | ||||||
|
||||||
| //getAsCSV to have user friendly value in text format | |
| // GetAsCSV to have user friendly value in text format |
Copilot
AI
Jan 28, 2026
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.
Missing space after comma in parameter list. Should be GetAsCSV($sAdditionalField, ' ', '') for consistency with PHP coding standards (PSR-12) and with application/ui.extkeywidget.class.inc.php:288 where the same change was made with proper spacing.
| array_push($aArguments, $oObject->GetAsCSV($sAdditionalField,' ','')); | |
| array_push($aArguments, $oObject->GetAsCSV($sAdditionalField, ' ', '')); |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -210,7 +210,8 @@ public static function ComputeOthersData(DBObject $oDbObject, string $sClass, ar | |||||
| $aData['has_additional_field'] = true; | ||||||
| $aArguments = []; | ||||||
| foreach ($aComplementAttributeSpec[1] as $sAdditionalField) { | ||||||
| $aArguments[] = $oDbObject->Get($sAdditionalField); | ||||||
| //getAsCSV to have user friendly value in text format | ||||||
|
||||||
| //getAsCSV to have user friendly value in text format | |
| // GetAsCSV to have user friendly value in text format |
Copilot
AI
Jan 28, 2026
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.
Missing space after comma in parameter list. Should be GetAsCSV($sAdditionalField, ' ', '') for consistency with PHP coding standards (PSR-12) and with application/ui.extkeywidget.class.inc.php:288 where the same change was made.
| $aArguments[] = $oDbObject->GetAsCSV($sAdditionalField,' ',''); | |
| $aArguments[] = $oDbObject->GetAsCSV($sAdditionalField, ' ', ''); |
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.
Comment style is inconsistent with the rest of the codebase. Comments should typically start with
//(space after slashes) and begin with a capital letter, following the pattern seen elsewhere in the file. For example:// GetAsCSV to have user friendly value in text format