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

Fix script dependency on content types UI #17570

Closed
wants to merge 1 commit into from

Conversation

MikeAlhayek
Copy link
Member

Fix #17565

@@ -51,7 +51,7 @@
</div>
</form>

<script at="Foot">
<script at="Foot" depends-on="admin">
Copy link
Member

@hishamco hishamco Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do they work perviously?

Copy link
Member Author

@MikeAlhayek MikeAlhayek Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think because theadmin.js was added global on mast pages. Or it could be due to the recent change in the resource. maybe @Skrypt moved the getTechnicalName function.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wonder if there many places affected!!

/cc @Skrypt

@MikeAlhayek
Copy link
Member Author

This did not fix the issue. @Skrypt I am wondering if you had made changes to assets so that getTechnicalName is no longer globally accessible like it was in the past

@agriffard agriffard changed the title Fix script dependeny on content types UI Fix script dependency on content types UI Mar 6, 2025
@Skrypt
Copy link
Contributor

Skrypt commented Mar 6, 2025

These methods needs to be moved to the Global methods. Will fix.

Copy link
Contributor

github-actions bot commented Mar 7, 2025

This pull request has merge conflicts. Please resolve those before requesting a review.

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

Successfully merging this pull request may close these issues.

Javascript errors in the admin
3 participants