-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forms: Undefined property #139
Comments
Please for personal support please use forum at https://forum.nette.org or gitter https://gitter.im/nette/nette You didn't read nette/security#19? |
There's no question. There is a problem. After I use the setDisabled() out of the field it is impossible to get information even if it is active |
Ok, sorry. Can you try to replace setDisabled in BaseControl to this? /**
* Disables or enables control.
* @param bool
* @return static
*/
public function setDisabled($value = TRUE)
{
if ($this->disabled = (bool) $value) {
$this->setValue(NULL);
} elseif (($form = $this->getForm(FALSE)) && $form->isAnchored() && $form->isSubmitted()) {
$this->loadHttpData();
}
return $this;
} |
Unfortunately, this did not help me. I still get this error
|
You must call setDisabled(FALSE) after form is submitted, not in AJAX request before. |
lol. How do I call setDisabled(false) after form is submitted? xD |
You should somehow save information that field is not disabled. In hidden field or etc. You can discuss it on forum ;) |
Okay) Thank you for such quick support! |
Hello!
I need to create a form with a field read-only and later make it active, but get the error after submit -
Undefined property: Nette\Utils\ArrayHash::$test2
. Below I have given examples of code that I use. Form becomes active and you can select any item after$this->redrawControl('forms')
.Example form:
I have a script that tracks changes
test
The text was updated successfully, but these errors were encountered: