Sometimes it happens that the Nette form looks like it is saved, but it just refreshes the page without any errors and nothing is saved. One reason for this could be a form validation failure. To find the element that causes this error, add the following code snippet (available for example on the \App\Forms\Administration\MenuFactory::edit page):
$form->onError[] = function (Nette\Application\UI\Form $form)
{
foreach ($form->getComponents(true) as $item) {
if (count($item->getErrors()) > 0) {
bd($item->getName());
bd($item->getErrors());
}
}
};
This code dumps the name of the problem input and also the error message.
Problem inputs:
-
c_addToGalleryContainer, gallery - in function pinMenuDefault pin only if langId === 1, also available on fencee.