Skip to content
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

Form element message not filled during form validation. #12395

Closed
lisek2000 opened this issue Nov 4, 2016 · 1 comment
Closed

Form element message not filled during form validation. #12395

lisek2000 opened this issue Nov 4, 2016 · 1 comment
Assignees
Milestone

Comments

@lisek2000
Copy link

lisek2000 commented Nov 4, 2016

Hello,

as in the topic - messages in elements are not filled after form validation.

Short example:

class Element
{
    public function render()
    {
        return $this->hasMessages() ? "yes" : "no";
    }
}

$form = isValid($_POST); // assuming that error occurs
echo $form->get("elementName")->render() // echo "no";
echo $form->hasMessagesFor("elementName") ? "yes" : "no"; //echo"yes";

Expected behaviour: after isValid() called on $form, all messages related to elements in that form will be setted also in element.

Details

  • Phalcon version: 3.0.1
  • PHP Version: 5.6.24
  • Installation type: Compiling from source
  • Server: Apache
@sergeyklay sergeyklay added this to the 3.0.3 milestone Dec 20, 2016
@sergeyklay
Copy link
Contributor

Fixed in the 3.0.x branch. Thanks you

@sergeyklay sergeyklay self-assigned this Dec 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants