When I find out, I saw one bug in INVO project.
This bug happens on all model. It displays wrong notice when edit an item
Scenario:
- 
Choose any model, search them. In this scenario, i chose Company 
- 
Click Edit any item. 
- 
Clear data of any required row. 
- 
Click Save 
- 
The notice appear (Something like this: "Name is required") 
- 
Add info for that required row 
- 
Click Save 
- The notice appear not correctly
Expect notice: Company was updated successfully
Actual notice: Company was created successfully
I think this bug happens because of code:
CompaniesController.php
    $data = $this->request->getPost();
    if (!$form->isValid($data, $company)) {
            foreach ($form->getMessages() as $message) {
                $this->flash->error($message);
            }
            return $this->forward('companies/new');
        }
I'm just a newbie with Phalcon. So how can we fix that?
Thanks so much.