Anyone else experienced this where you are obviously sending a form
field through with a value, but the notEmpty validate rule still
returns false?

echo debug($this->data):
Array
(
    [Scheme] => Array
        (
            [id] => 46
        )

    [Referral] => Array
        (
            [date_referred] => Array
                (
                    [day] => 01
                    [month] => 01
                    [year] => 2009
                )

            [staff_id] => 440
            [agency_id] => 777
            [agency_contact_id] => 1651
            [client_id] => 1881
            [is_first_time_homeless] => 0
            [is_rough_recently] => 0
            [rough_recently_detail] =>
            [stayed_last_night] =>
            [is_housing_application_submitted] => 0
            [housing_application_detail] =>
            [housing_other_agencies_detail] =>
            [housing_comments] =>
            [offer_status] => 1
            [declined_reason_id] => 759
        )

    [Agency] => Array
        (
            [area] => Breckland
            [hours_open] => 0800 -1800 Mon to Thurs
0800 -1700 Fri
        )
)

echo debug($this->Referral->validate):
Array
(
    [agency_id] => Array
        (
            [rule] => notEmpty
        )

    [date_referred] => Array
        (
            [rule] => notEmpty
        )

    [scheme_id] => Array
        (
            [rule] => notEmpty
        )

    [client_id] => Array
        (
            [rule] => notEmpty
        )

    [agency_contact_id] => Array
        (
            [rule] => notEmpty
        )

    [staff_id] => Array
        (
            [rule] => notEmpty
        )
)

echo debug($this->validatationErrors):
Array
(
    [Referral] => Array
        (
            [agency_id] => This field cannot be left blank
        )
)

It's got me stumped and it is damn annoying as meeting with client
tomorrow and been staring at this for an hour.

Paul (Webbed IT)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to