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] Only "add user" works in admin options - JS error "SyntaxError: missing ) after argument list" #38

Closed
Epoxyde opened this issue Jun 25, 2018 · 2 comments

Comments

@Epoxyde
Copy link

Epoxyde commented Jun 25, 2018

Hi,

There is a javascript issue in auth.twig causing an error:

SyntaxError: missing ) after argument list

I fixed it by replacing simple quotes with double quotes for setMessage arguments:

            boltExt.setMessage("useradd", "{{__('Adding user...')}}" );
            boltExt.setMessage("userdel", "{{__('Removing user(s)...')}}");
            boltExt.setMessage("userenable", "{{__('Enabling user(s)...')}}" );
            boltExt.setMessage("userdisable", "{{__('Disabling user(s)...')}}");
            boltExt.setMessage("roleadd", "{{__('Adding role...')}}");
            boltExt.setMessage("roledel", "{{__('Removing role...')}}");
            boltExt.setMessage("authnotsellHeader", "{{__('Nothing Selected!')}}");
            boltExt.setMessage("authnotsell", "{{__('You need to choose a auth.')}}");
            boltExt.setMessage("rolenotsellHeader", "{{__('None role Selected!')}}");
            boltExt.setMessage("rolenotsell", "{{__('You need to choose a role.')}}");
            boltExt.setMessage("autherrorHeader", "{{__('Error!')}}");
            boltExt.setMessage("autherror", "{{__('The server returned an error.')}}");
            boltExt.setMessage("confirmdeleteHeader", "{{__('Confim deletion')}}");
            boltExt.setMessage("confirmdelete", "{{__('Are you sure you want to delete these accounts?')}}");
            boltExt.setMessage("confirmdeleteButton", "{{__('Yes!')}}");

Details

  • Bolt Auth Version: [ 3.0.5 ]
  • Bolt Version: [ 3.5.3 ]
  • [ Firefox Quantum for Ubuntu 60.0.2 ]
@artggd
Copy link
Contributor

artggd commented Jun 25, 2018

Are you browsing the admin in French? If so, then your issue should be fixed when #37 is merged 🙂

@Epoxyde
Copy link
Author

Epoxyde commented Jun 25, 2018

@artggd Yes, you're right, I am browsing the admin in French. So rendez-vous to #37 merging. Thanks :-)

@Epoxyde Epoxyde closed this as completed Jun 25, 2018
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