-
Notifications
You must be signed in to change notification settings - Fork 900
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
removeField doesnt seem to work #3832
Comments
Hello there! Thanks for opening your first issue on this repo! Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that. Backpack communication channels:
Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch. Thank you! -- |
Hey @afdzal3 , This might be connected to a known bug in the Show Operation. One that unfortunately we cannot fix without a breaking change, and plan to fix in Backpack 4.2. Basically the problem is that you cannot remove the columns that have been added by the ShowOperation using I have two possible solutions for you: Solution 1There's a workaround to hiding columns in the Show operation that should work, when this doesn't. You can specify Solution 2See my comment here please - #3108 (comment) - you can disable the Sorry for the bad experience, I know this bug sucks, but unfortunately we can't fix it until we launch a new version. Otherwise we'd be breaking everybody's admin panels, and that would suck even more... I'm going to close this, as I'm pretty sure #3132 fixes it, but if I'm mistaken and the solutions above don't work for you, or the PR doesn't fix the problem or something, please let us know and we'll reopen the issue no problem. Cheers! Other notes:
|
Bug report
What I did
create protected function setupShowOperation()
add this
$this->crud->removeField('deleted_by');
CRUD::removeField('deleted_by');
What I expected to happen
column deleted_by shouldn't appear in show page
What happened
column deleted_by still appear
What I've already tried to fix it
Is it a bug in the latest version of Backpack?
After I run
composer update backpack/crud
the bug... is it still there?Yes
Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is:PHP VERSION:
PHP 7.3.28-1+ubuntu20.04.1+deb.sury.org+1 (cli) (built: May 1 2021 11:54:39) (
NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.28, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.28-1+ubuntu20.04.1+deb.sury.org+1, Copyright (c) 1999
-2018, by Zend Technologies
LARAVEL VERSION:
v8.60.0@44f16a31a1d4ac8a51605550d7796e2273984a48
BACKPACK VERSION:
4.1.52@239e60df0436f8a817facce20a2dffcb2b6e7250
The text was updated successfully, but these errors were encountered: