mootensai / yii2-enhanced-gii

Enhanced Yii2 Gii (generator) that generates related Models & CRUD
MIT License
203 stars 98 forks source link

HasMany: Update > valdiation error Message > update again >The object being updated is outdated. #174

Open strtob opened 3 years ago

strtob commented 3 years ago

Hi,

This extensions make yii great for me! Complement!

I've got just one thing, which propaberly not working correctly:

It seems that some forms will not be field with the lock id correctly after the first update and have then an outdated id.

Does anyone have an idea, how to correct this???

Many thanks in advance!!!

Toby

strtob commented 3 years ago

Hi again,

ok, I found out that the "normal" form don't send an submit, if not all rules are fulfilled.

Unfortunately, if an has many form (as tabular form) don't fulfill all rules, the page will be submitted and the flash message shows the validation error. As long as the validation error will not prevent the submit - it doesn't work.

So, how can I bring the form to prevent the submit, if hasmanyforms validation rules are not fulfilled?