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

Bug on render_cell function in related list view #100

Open
Pierrick-R opened this issue Mar 28, 2018 · 0 comments
Open

Bug on render_cell function in related list view #100

Pierrick-R opened this issue Mar 28, 2018 · 0 comments

Comments

@Pierrick-R
Copy link

there is a bug on the render_cell function for the related list view.

Let's take an example

function Field2_link__renderCell( &$record ){
 
 if ($record->strval('Field2_link')) return  '<a href='.$record->strval('Field2_link').' target="_blank"> Link </a>';
 
 }

If I go to the list view
=> Field2 display is correct
this means "Link" appears and works (since I put noLinkFromListView=1 in the fields.ini)

If I access the same table (the one which includes "Field2"), but as related list view
=> Field2 display is no longer correct
its appears with the "[...]", this means "Link[...]"

when I clic on "Link" => the hyperlink works
when I clic on [...] => it displays the complete hyperlink


To fix the bug
=> fix the handling of the $fulltext variable around this line

$fulltext = 'data-fulltext="'.df_escape($fulltext).'"';

Thanks

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