partkeepr / PartKeepr

Open Source Inventory Management
http://www.partkeepr.org
GNU General Public License v3.0
1.38k stars 400 forks source link

Argument error when adding distributor to part. #996

Closed ThJohannsen closed 4 years ago

ThJohannsen commented 6 years ago

System Information

Please attach files, for example, screenshots to describe your issue. If you can, create a screenshot ob View->System Information.

selection_206

How to reproduce

Then

(so far everything works as expected. The distributor is now in the grid view. selection_208

Instead I get an error window: selection_209

Three tabs; "Full report" says:


An error occurred

Details

Type error: Argument 1 passed to Proxies__CG__\PartKeepr\PartBundle\Entity\PartManufacturer::setManufacturer() must be an instance of PartKeepr\ManufacturerBundle\Entity\Manufacturer, null given, called in /var/www/partkeepr-1.4.0/vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php on line 591

Request

PUT /api/parts/1?_dc=1535889000821

[object Object]

Response Status Code

500

Response

{"@context":"\/api\/contexts\/Error","@type":"Error","hydra:title":"An error occurred","hydra:description":"Type error: Argument 1 passed to Proxies\CG\PartKeepr\PartBundle\Entity\PartManufacturer::setManufacturer() must be an instance of PartKeepr\ManufacturerBundle\Entity\Manufacturer, null given, called in \/var\/www\/partkeepr-1.4.0\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/PropertyAccess\/PropertyAccessor.php on line 591"}

Server Configuration

doctrine_orm_version: 2.5.4 doctrine_dbal_version: 2.5.2 doctrine_common_version: 2.6.0-DEV php_version: 7.0.30-0+deb9u1 auto_start_session: true maxUploadSize: 2097152 isOctoPartAvailable: false availableImageFormats: JPG,GIF,PNG max_users: unlimited authentication_provider: PartKeepr.Auth.HTTPBasicAuthenticationProvider tip_of_the_day_uri: https://partkeepr.org/tips/%s password_change: true patreonStatus: [object Object] defaultGridPresets: []


After closing the windows, "Save" is greyed out, only "Cancel" and "OctoPart" are clickable.

ThJohannsen commented 6 years ago

FYI: Error is fixed in latest GIT version on which the "demo system" is based; GIT development version Commit 8a6380e46efc81fd52c650995ad4ab62b7cbcedf Short Commit 8a6380e4

christianlupus commented 4 years ago

@ThJohannsen Can you verify that it is no longer an issue?

christianlupus commented 4 years ago

I close this as it seems to be solved in master and no other information was provided.