Closed davola closed 10 months ago
I'm unable to reproduce this - if possible, could you please send in your composer.json/lock files and database backup to plugins@spicyweb.com.au and let us know which entry this is happening with, and we'll have a look.
Hey @ttempleton - while I can't give you the database copy I can tell you the field scafolding we have in place (its a bit tricky/complex)
tableList
(entry type)tableColumns
(NEO field)
tableColumn
(top level NEO field)columnSection
(child level NEO
sectionTitle
(plain text field - required)sectionItems
(matrix field - 1 min required) <--- this is the one failing as being detected emptysectionItems
field is detected as empty and fails validation as it has at least 1 required.
The real problem is that we have only 2 tableColumns
(the top level NEO field) added but this is detecting 3 by error.
Here sample top level NEO field tableColumn
and child level NEO field columnSection
Remember, this works properly on a full entry edit window. This only fails when editing on a slide-out window.
the plugins we have instaled are as follows:
"require": {
"born05/craft-assetusage": "3.2.0",
"craftcms/aws-s3": "2.0.3",
"craftcms/cms": "4.5.9",
"craftcms/feed-me": "5.2.0",
"craftcms/google-cloud": "2.0.0",
"craftcms/redactor": "3.0.4",
"mmikkel/incognito-field": "1.3.0",
"nystudio107/craft-seomatic": "4.0.33",
"percipioglobal/craft-colour-swatches": "4.3.0",
"spicyweb/craft-neo": "3.9.7",
"verbb/field-manager": "3.0.7",
"verbb/icon-picker": "2.0.14",
"verbb/smith": "2.0.0",
"verbb/super-table": "3.0.12",
"vlucas/phpdotenv": "^3.4.0",
"wrav/oembed": "2.3.0",
"yiisoft/yii2-redis": "~2.0.0"
},
"require-dev": {
"phpunit/phpunit": "^9",
"yiisoft/yii2-shell": "^2.0.3"
},
Hope this helps!
Thanks for that - I was able to reproduce with that information. It turned out to specifically affect new blocks, and it's fixed now in Neo 3.9.9.
Bug Description
When editing some entry content over a slideout window, the NEO field validation fails when trying to save. When making the same edit on the NEO field, but over a full window (editing the entry on the main window) it succeeds.
Steps to reproduce
Couldn’t save entry.
entry.SLIDEOUT SAVE REQUEST PAYLOAD
SLIDEOUT REQUEST ERROR RESPONSE
Expected behaviour
The slideout SAVE action should succeed the same way it succeds on a full edit windows.
Posible Error
The error claims that the tableColumns[3].sectionItems should have values on it - but the error is that we have only 2 table columns - tableColumns[0] and tableColumns[1] - so I believe the count on the slideouts fails somehow.
FYI:
sectionItems
is a required field, therefor that's why it say at least 1 block needed.Neo version
NEO 3.9.7
Craft CMS version
Craft Pro 4.5.9
What is the affected Neo field's propagation method?
Save blocks to all sites the owner element is saved in
Does this issue involve templating, and if so, is eager-loading used?
This is not a templating issue