feat: Add isPrivate field to AdminProduct and update filtering logic in admin panels
Test Suite / test (24.15.0) (push) Has been cancelled
Test Suite / test (24.15.0) (push) Has been cancelled
This commit is contained in:
@@ -565,6 +565,7 @@ class _PantryFormDialogState extends State<_PantryFormDialog> {
|
||||
name: initial.productName,
|
||||
canonicalName: initial.productCanonicalName,
|
||||
ownerId: initial.userId,
|
||||
isPrivate: null,
|
||||
categoryId: initial.categoryId,
|
||||
categoryPath: initial.categoryPath,
|
||||
status: 'private',
|
||||
@@ -645,7 +646,7 @@ class _PantryFormDialogState extends State<_PantryFormDialog> {
|
||||
if (value == null) {
|
||||
_productScopeFilter = ProductScopeFilter.globalOnly;
|
||||
final selected = _productById(_productId);
|
||||
if (selected?.ownerId != null) {
|
||||
if (selected?.isPrivate == true) {
|
||||
_productId = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user