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

"Edit Layout" button on action ribbon gone funny #103

Open
tapashdatta opened this issue Jun 26, 2021 · 4 comments
Open

"Edit Layout" button on action ribbon gone funny #103

tapashdatta opened this issue Jun 26, 2021 · 4 comments

Comments

@tapashdatta
Copy link

tapashdatta commented Jun 26, 2021

Just noticed this since the latest update. the "Layout" button coming will all CSS as a text. Upgraded as usual, not sure what went wrong!
Screenshot 2021-06-26 at 12 41 20

Is it a bug of the extension?

@tapashdatta tapashdatta changed the title New "Layout" button on action ribbon gone funny "Edit Layout" button on action ribbon gone funny Jun 26, 2021
@colemanw
Copy link
Member

Not unless the name of your layout is <span style="color: rgb(0, 0, 0); font-family: Lato... but that's a very strange name for a layout.

@colemanw
Copy link
Member

FYI I am not able to find the string "Lato" anywhere in this extension, or anywhere in the CiviCRM codebase. Perhaps this is coming from your theme or another extension?

@tapashdatta
Copy link
Author

tapashdatta commented Jan 23, 2022

I just found out, the html snippet was picking up as part of ['label'] parameter on the contactlayout.php line 205 <i class="crm-i fa-edit"></i> ' . htmlspecialchars(E::ts('Layout: %1', [1 => $layout['label'] ?? E::ts('System Default')])) .

When I remove the 'label', my problem resolves. I guess it's a issue somewhere in my css where label is picked up and placed on the summary screen. I am not a programer, so dont exactly know what the issue is.

@colemanw
Copy link
Member

I think you should try changing the label of your layout, those html characters seem to have snuck into the label. Editing it may make them go away.

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

2 participants