question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] When remove "Reset button" in the list, you should avoid appending the trailing comma

See original GitHub issue

Bug report

Prologue

It’s a very small little stupid thing… sorry…

What I did

In config/backpack/crud.php we disabled the reset button

'resetButton' => false,

What I expected to happen

We expected that the trailing comma after list operation subheading will be removed

What happened

It shows a trailing comma

image

What I’ve already tried to fix it

I searched around in the code where the js is appending the string but not found, yet.

Is it a bug in the latest version of Backpack?

Yes

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

### PHP VERSION:
PHP 7.4.25 (cli) (built: Oct 20 2021 09:29:27) ( NTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

### LARAVEL VERSION:
v8.70.2@dec9524cd0f9fa35a6eb8e25d0b40f8bbc8ec225

### BACKPACK VERSION:
4.1.60@bec5cfa11f0cd0712c79256748acf5850080c0ee

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
pxpmcommented, Aug 22, 2022

Hey @realtebo it took us a bit to come back here, but we submitted a PR today that should make italian language compatible with all the other languages for the PostFix value.

Thanks for the report 🙏

1reaction
realtebocommented, Jan 18, 2022

Easy workaround:

Create resources/lang/vendor/backpack/it/crud.php and add only this

<?php


return [

    // Override per togliere la virgola finale
    'infoPostFix'    => '',

];
Read more comments on GitHub >

github_iconTop Results From Across the Web

prettier trailing commas error when importing a group
What is happening is that prettier advises to add a trailing comma after useMediaQuery. I add it and then when a save the...
Read more >
1788154 – Adding a trailing comma to excludes option causes ...
Bug 1788154 - Adding a trailing comma to excludes option causes all items listed for exclusion to be ignored.
Read more >
How to remove last / ending comma from cell in Excel?
Remove last / ending comma from cell with formulas. To delete the commas from each cell of the selection quickly and easily, you...
Read more >
Text Formula String Concatenation - Omit Trailing Comma
That should not be a problem as in first condition you are checking if any previous checkbox is true then add comma, else...
Read more >
shopping list python
You need to create the foundations of an e-commerce engine for a B2C (business-to-consumer) retailer. append (int (command [1])) elif "remove" in command: ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found