Skip to content
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

Wrong parameter in parent::formatValue() #7

Open
Aybee opened this issue Aug 16, 2016 · 0 comments
Open

Wrong parameter in parent::formatValue() #7

Aybee opened this issue Aug 16, 2016 · 0 comments

Comments

@Aybee
Copy link

Aybee commented Aug 16, 2016

Hier diese Zeile
https://github.com/hschottm/xtmembers/blob/master/modules/ModuleMemberlist.php#L322
müsste wahrscheinlich geändert werden.

# return parent::formatValue($k, $value, $blnListSingle=false);
  return parent::formatValue($k, $value, $blnListSingle);

Der Parameter $blnListSingle könnte true sein und müsste dann durchgeschleift werden.

Ist aufgefallen, weil auf der Detailseite der Listendarstellung folgendes steht
Country [de] Germany
sollte aber
Country Germany
lauten.

Diese Zeile ist für dieses [de] verantwortlich:
https://github.com/hschottm/contao_memberlist/blob/5cc1384c4c3ef9e68341137ab642ff2d909ccef4/modules/ModuleMemberlist.php#L511

Alternativ könnte evtl. auch auf die ganze Funktion formatValue() verzichtet werden, wenn der HOOK memberListFormatValue benutzt wird, wie hier beschrieben https://github.com/hschottm/contao_memberlist#memberlistformatvalue.

HOOK: https://github.com/hschottm/contao_memberlist/blob/5cc1384c4c3ef9e68341137ab642ff2d909ccef4/modules/ModuleMemberlist.php#L414

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant